Skip to content

Instantly share code, notes, and snippets.

@ajeetraina
Created November 27, 2016 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajeetraina/67c0177061be3113e60db027747633b9 to your computer and use it in GitHub Desktop.
Save ajeetraina/67c0177061be3113e60db027747633b9 to your computer and use it in GitHub Desktop.
Trying out Service Logging under Docker 1.13
root@Master1:~# docker service scale redis=5
redis scaled to 5
root@Master1:~# docker service logs redis
redis.1.dd53bhhvvh2x@Node1 | 1:C 27 Nov 14:58:18.861 # Warning: no config file specifiredis-server /path/to/redis.conf
redis.1.dd53bhhvvh2x@Node1 | _._
redis.1.dd53bhhvvh2x@Node1 | _.-``__ ''-._
redis.1.dd53bhhvvh2x@Node1 | _.-`` `. `_. ''-._ Redis 3.2.5 (0000
redis.1.dd53bhhvvh2x@Node1 | .-`` .-```. ```\/ _.,_ ''-._
redis.1.dd53bhhvvh2x@Node1 | ( ' , .-` | `, ) Running in standa
redis.1.dd53bhhvvh2x@Node1 | |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
redis.1.dd53bhhvvh2x@Node1 | | `-._ `._ / _.-' | PID: 1
redis.1.dd53bhhvvh2x@Node1 | `-._ `-._ `-./ _.-' _.-'
redis.1.dd53bhhvvh2x@Node1 | |`-._`-._ `-.__.-' _.-'_.-'|
redis.1.dd53bhhvvh2x@Node1 | | `-._`-._ _.-'_.-' | http://redi
redis.1.dd53bhhvvh2x@Node1 | `-._ `-._`-.__.-'_.-' _.-'
redis.1.dd53bhhvvh2x@Node1 | |`-._`-._ `-.__.-' _.-'_.-'|
redis.1.dd53bhhvvh2x@Node1 | | `-._`-._ _.-'_.-' |
redis.1.dd53bhhvvh2x@Node1 | `-._ `-._`-.__.-'_.-' _.-'
redis.1.dd53bhhvvh2x@Node1 | `-._ `-.__.-' _.-'
redis.1.dd53bhhvvh2x@Node1 | `-._ _.-'
redis.1.dd53bhhvvh2x@Node1 | `-.__.-'
redis.1.dd53bhhvvh2x@Node1 |
redis.1.dd53bhhvvh2x@Node1 | 1:M 27 Nov 14:58:18.878 # WARNING: The TCP backlog settinset to the lower value of 128.
redis.1.dd53bhhvvh2x@Node1 | 1:M 27 Nov 14:58:18.878 # Server started, Redis version 3
redis.1.dd53bhhvvh2x@Node1 | 1:M 27 Nov 14:58:18.878 # WARNING overcommit_memory is sethis issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the
redis.1.dd53bhhvvh2x@Node1 | 1:M 27 Nov 14:58:18.878 # WARNING you have Transparent Huncy and memory usage issues with Redis. To fix this issue run the command 'echo never > /our /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted
redis.1.dd53bhhvvh2x@Node1 | 1:M 27 Nov 14:58:18.878 * The server is now ready to acce
redis.2.t2mv39dwuudy@Node2 | 1:C 27 Nov 15:00:15.114 # Warning: no config file specifiredis-server /path/to/redis.conf
redis.4.39mnwwfgcmi6@Master1 | 1:C 27 Nov 15:00:28.532 # Warning: no config file specie redis-server /path/to/redis.conf
redis.4.39mnwwfgcmi6@Master1 | _._
redis.4.39mnwwfgcmi6@Master1 | _.-``__ ''-._
redis.4.39mnwwfgcmi6@Master1 | _.-`` `. `_. ''-._ Redis 3.2.5 (00
redis.4.39mnwwfgcmi6@Master1 | .-`` .-```. ```\/ _.,_ ''-._
redis.4.39mnwwfgcmi6@Master1 | ( ' , .-` | `, ) Running in stan
redis.4.39mnwwfgcmi6@Master1 | |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
redis.4.39mnwwfgcmi6@Master1 | | `-._ `._ / _.-' | PID: 1
redis.4.39mnwwfgcmi6@Master1 | `-._ `-._ `-./ _.-' _.-'
redis.4.39mnwwfgcmi6@Master1 | |`-._`-._ `-.__.-' _.-'_.-'|
redis.4.39mnwwfgcmi6@Master1 | | `-._`-._ _.-'_.-' | http://re
redis.4.39mnwwfgcmi6@Master1 | `-._ `-._`-.__.-'_.-' _.-'
redis.4.39mnwwfgcmi6@Master1 | |`-._`-._ `-.__.-' _.-'_.-'|
redis.4.39mnwwfgcmi6@Master1 | | `-._`-._ _.-'_.-' |
redis.4.39mnwwfgcmi6@Master1 | `-._ `-._`-.__.-'_.-' _.-'
redis.4.39mnwwfgcmi6@Master1 | `-._ `-.__.-' _.-'
redis.4.39mnwwfgcmi6@Master1 | `-._ _.-'
redis.4.39mnwwfgcmi6@Master1 | `-.__.-'
redis.4.39mnwwfgcmi6@Master1 |
redis.4.39mnwwfgcmi6@Master1 | 1:M 27 Nov 15:00:28.539 # WARNING: The TCP backlog setts set to the lower value of 128.
redis.4.39mnwwfgcmi6@Master1 | 1:M 27 Nov 15:00:28.539 # Server started, Redis version
redis.4.39mnwwfgcmi6@Master1 | 1:M 27 Nov 15:00:28.539 # WARNING overcommit_memory is x this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run th
redis.4.39mnwwfgcmi6@Master1 | 1:M 27 Nov 15:00:28.539 # WARNING you have Transparent tency and memory usage issues with Redis. To fix this issue run the command 'echo never > your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarte
redis.4.39mnwwfgcmi6@Master1 | 1:M 27 Nov 15:00:28.539 * The server is now ready to ac
Unrecognized input header: 69
root@Master1:~# docker service ps redis
NAME IMAGE NODE DESIRED STATE CURRENT STATE ER
redis.1.dd53bhhvvh2x redis:3.2.5 Node1 Running Running 2 minutes ago
redis.2.t2mv39dwuudy redis:3.2.5 Node2 Running Running about a minute ago
redis.3.w7rk5qjx4okq redis:3.2.5 node5 Running Running 41 seconds ago
redis.4.39mnwwfgcmi6 redis:3.2.5 Master1 Running Running 47 seconds ago
redis.5.1x5luhycj1g7 redis:3.2.5 Noe6 Running Running 45 seconds ago
root@Master1:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment