Zack Williams | 41513bf | 2018-07-07 20:08:35 -0700 | [diff] [blame] | 1 | # Copyright 2017-present Open Networking Foundation |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
sathishg | b5d1c18 | 2017-07-13 14:20:19 +0530 | [diff] [blame] | 14 | version: "3" |
| 15 | services: |
| 16 | |
| 17 | # |
| 18 | # Deploying a Fluentd cluster using this file assumes that overlay network 'voltha_net' |
| 19 | # has already been created. To deploy the fluentd cluster, issue the command: |
| 20 | # |
| 21 | # docker stack deploy -c docker-compose-fluentd-cluster.yml fluentd |
| 22 | # |
| 23 | # This spins up two Fluentd Forwarders and one each Fluentd Aggregator-Active, Fluentd Aggregator-Standby. |
| 24 | # The forwards listens for voltha components logs on port 23224 and sends them towards Fluentd Aggregator. |
| 25 | # Fluentd Aggregator writes them to their host mounted disk |
| 26 | # |
| 27 | |
sathishg | b5d1c18 | 2017-07-13 14:20:19 +0530 | [diff] [blame] | 28 | fluentd: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 29 | image: "${REGISTRY}${REPOSITORY}voltha-fluentd:${TAG:-latest}" |
David K. Bainbridge | 4e920b7 | 2017-10-12 07:49:14 -0700 | [diff] [blame] | 30 | logging: |
| 31 | driver: "json-file" |
| 32 | options: |
| 33 | max-size: "10m" |
| 34 | max-file: 3 |
sathishg | b5d1c18 | 2017-07-13 14:20:19 +0530 | [diff] [blame] | 35 | deploy: |
| 36 | mode: replicated |
| 37 | replicas: 2 |
| 38 | restart_policy: |
| 39 | condition: on-failure |
| 40 | environment: |
| 41 | SERVICE_24224_NAME: "fluentd-intake" |
Sergio Slobodrian | 8725ea8 | 2017-08-27 23:47:41 -0400 | [diff] [blame] | 42 | FLUENTD_CONF: fluent.conf |
sathishg | b5d1c18 | 2017-07-13 14:20:19 +0530 | [diff] [blame] | 43 | networks: |
| 44 | - voltha-net |
| 45 | ports: |
Sergio Slobodrian | 8725ea8 | 2017-08-27 23:47:41 -0400 | [diff] [blame] | 46 | - "24224" |
sathishg | b5d1c18 | 2017-07-13 14:20:19 +0530 | [diff] [blame] | 47 | |
| 48 | |
| 49 | networks: |
| 50 | voltha-net: |
| 51 | external: |
| 52 | name: voltha_net |
| 53 | |