Sergio Slobodrian | 36cd85f | 2017-08-24 11:01:11 -0400 | [diff] [blame] | 1 | version: "3" |
| 2 | services: |
| 3 | |
| 4 | # |
| 5 | # Deploying a Fluentd cluster using this file assumes that overlay network 'voltha_net' |
| 6 | # has already been created. To deploy the fluentd cluster, issue the command: |
| 7 | # |
| 8 | # docker stack deploy -c docker-compose-fluentd-cluster.yml fluentd |
| 9 | # |
| 10 | # This spins up two Fluentd Forwarders and one each Fluentd Aggregator-Active, Fluentd Aggregator-Standby. |
| 11 | # The forwards listens for voltha components logs on port 23224 and sends them towards Fluentd Aggregator. |
| 12 | # Fluentd Aggregator writes them to their host mounted disk |
| 13 | # |
| 14 | |
| 15 | fluentdactv: |
Sergio Slobodrian | 8725ea8 | 2017-08-27 23:47:41 -0400 | [diff] [blame] | 16 | image: cord/fluentd |
Sergio Slobodrian | 36cd85f | 2017-08-24 11:01:11 -0400 | [diff] [blame] | 17 | deploy: |
| 18 | replicas: 1 |
| 19 | restart_policy: |
| 20 | condition: on-failure |
Sergio Slobodrian | 8725ea8 | 2017-08-27 23:47:41 -0400 | [diff] [blame] | 21 | environment: |
| 22 | FLUENTD_CONF: fluent-agg.conf |
Sergio Slobodrian | 36cd85f | 2017-08-24 11:01:11 -0400 | [diff] [blame] | 23 | networks: |
| 24 | - voltha-net |
| 25 | ports: |
| 26 | - "24224" |
| 27 | volumes: |
Sergio Slobodrian | 8725ea8 | 2017-08-27 23:47:41 -0400 | [diff] [blame] | 28 | - "/var/log/voltha/logging_volume:/fluentd/log" |
Sergio Slobodrian | 36cd85f | 2017-08-24 11:01:11 -0400 | [diff] [blame] | 29 | |
| 30 | fluentdstby: |
Sergio Slobodrian | 8725ea8 | 2017-08-27 23:47:41 -0400 | [diff] [blame] | 31 | image: cord/fluentd |
Sergio Slobodrian | 36cd85f | 2017-08-24 11:01:11 -0400 | [diff] [blame] | 32 | deploy: |
| 33 | replicas: 1 |
| 34 | restart_policy: |
| 35 | condition: on-failure |
Sergio Slobodrian | 8725ea8 | 2017-08-27 23:47:41 -0400 | [diff] [blame] | 36 | environment: |
| 37 | FLUENTD_CONF: fluent-agg.conf |
Sergio Slobodrian | 36cd85f | 2017-08-24 11:01:11 -0400 | [diff] [blame] | 38 | networks: |
| 39 | - voltha-net |
| 40 | ports: |
| 41 | - "24224" |
| 42 | volumes: |
Sergio Slobodrian | 8725ea8 | 2017-08-27 23:47:41 -0400 | [diff] [blame] | 43 | - "/var/log/voltha/logging_volume:/fluentd/log" |
Sergio Slobodrian | 36cd85f | 2017-08-24 11:01:11 -0400 | [diff] [blame] | 44 | |
| 45 | networks: |
| 46 | voltha-net: |
| 47 | external: |
| 48 | name: voltha_net |
| 49 | |