Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View renatoc's full-sized avatar

Renato Castro renatoc

View GitHub Profile
@renatoc
renatoc / gist:55f9ab1c7b6f72092102
Created June 1, 2015 16:22
Disque Crash (Machine 1)
This file has been truncated, but you can view the full file.
2446:P 01 Jun 16:05:18.395 # IP address for this node updated to 10.13.176.104
2446:P 01 Jun 16:05:49.894 # Address updated for node fd44d7e5e007ef1504cadf0a8102511168644d69, now 54.234.7.172:7712
2446:P 01 Jun 16:05:49.982 # Address updated for node fd44d7e5e007ef1504cadf0a8102511168644d69, now 127.0.0.1:7712
2446:P 01 Jun 16:05:58.345 #
=== DISQUE BUG REPORT START: Cut & paste starting from here ===
2446:P 01 Jun 16:05:58.345 # ------------------------------------------------
2446:P 01 Jun 16:05:58.345 # !!! Software Failure. Press left mouse button to continue
2446:P 01 Jun 16:05:58.345 # Guru Meditation: "Unknown encoding type" #object.c:319
2446:P 01 Jun 16:05:58.345 # (forcing SIGSEGV in order to print the stack trace)
@renatoc
renatoc / gist:fcaabeb9e7d6cfa2cb38
Created June 1, 2015 16:28
Disque Crash (Machine 2)
This file has been truncated, but you can view the full file.
[2015-06-01T15:58:11.538Z] (sys) Starting
2960:P 01 Jun 15:58:11.575 # You requested maxclients of 2000000 requiring at least 2000032 max file descriptors.
2960:P 01 Jun 15:58:11.575 # Disque can't set maximum open files to 2000032 because of OS error: Operation not permitted.
2960:P 01 Jun 15:58:11.575 # Current maximum open files is 1024000. maxclients has been reduced to 1048544 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
2960:P 01 Jun 15:58:11.610 * Node configuration loaded, I'm fd44d7e5e007ef1504cadf0a8102511168644d69
Disque 0.0.1 (b5264359/0) 64 bit
_ -
. Port: 7712
. o . PID: 2960
.
@renatoc
renatoc / gist:24b764938d18765e0e33
Created June 2, 2015 14:20
after cpu usage 100%
=== DISQUE BUG REPORT START: Cut & paste starting from here ===
3638:P 02 Jun 14:17:42.104 # Disque 0.0.1 crashed by signal: 11
3638:P 02 Jun 14:17:42.104 # Failed assertion: <no assertion failed> (<no file>:0)
3638:P 02 Jun 14:17:42.104 # --- STACK TRACE
/usr/local/bin/disque-server 0.0.0.0:7712(logStackTrace+0x3e)[0x42695e]
/usr/local/bin/disque-server 0.0.0.0:7712(gotAckReceived+0xd5)[0x432c05]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0)[0x7ffff78d0cb0]
/usr/local/bin/disque-server 0.0.0.0:7712(gotAckReceived+0xd5)[0x432c05]
/usr/local/bin/disque-server 0.0.0.0:7712(clusterProcessPacket+0x8ac)[0x429edc]
/usr/local/bin/disque-server 0.0.0.0:7712(clusterReadHandler+0xb1)[0x42a261]
root@ip-10-109-145-106:~/disque# make clean
cd src && make clean
make[1]: Entering directory `/root/disque/src'
rm -rf disque-server disque disque-check-aof *.o *.gcda *.gcno *.gcov disque.info lcov-html
make[1]: Leaving directory `/root/disque/src'
root@ip-10-109-145-106:~/disque# make noopt
cd src && make noopt
make[1]: Entering directory `/root/disque/src'
make OPTIMIZATION="-O0"
make[2]: Entering directory `/root/disque/src'
root@ip-10-109-145-106:/var/log/disque# cat /etc/disque/7711/disque.conf
# Disque configuration file example
# Note on units: when memory size is needed, it is possible to specify
# it in the usual form of 1k 5GB 4M and so forth:
#
# 1k => 1000 bytes
# 1kb => 1024 bytes
# 1m => 1000000 bytes
# 1mb => 1024*1024 bytes
@renatoc
renatoc / gist:fe91228ddc6ad17a4980
Created June 2, 2015 14:37
Machine 1 ( disque 7711) log
This file has been truncated, but you can view the full file.
5799:P 02 Jun 14:26:31.454 # You requested maxclients of 2000000 requiring at least 2000032 max file descriptors.
5799:P 02 Jun 14:26:31.455 # Disque can't set maximum open files to 2000032 because of OS error: Operation not permitted.
5799:P 02 Jun 14:26:31.455 # Current maximum open files is 1024. maxclients has been reduced to 1048544 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
5799:P 02 Jun 14:26:31.491 * Node configuration loaded, I'm 19f940a1ab7abf79247ac56d57a04a605ccfe8c4
Disque 0.0.1 (b5264359/0) 64 bit
_ -
. Port: 7711
. o . PID: 5799
.
- http://disque.io
@renatoc
renatoc / gist:177d565159a080fc54d3
Created June 2, 2015 14:38
Machine 1 ( disque 7712) log
5807:P 02 Jun 14:26:54.584 # You requested maxclients of 2000000 requiring at least 2000032 max file descriptors.
5807:P 02 Jun 14:26:54.584 # Disque can't set maximum open files to 2000032 because of OS error: Operation not permitted.
5807:P 02 Jun 14:26:54.584 # Current maximum open files is 1024. maxclients has been reduced to 1048544 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
5807:P 02 Jun 14:26:54.620 * Node configuration loaded, I'm 8dc7709089eac376026c1d55f9edcf97eaf1b64c
Disque 0.0.1 (b5264359/0) 64 bit
_ -
. Port: 7712
. o . PID: 5807
.
- http://disque.io
@renatoc
renatoc / gist:4faacd7631e0a3888e85
Created June 2, 2015 14:38
Machine 2( disque 7711) log
4674:P 02 Jun 14:27:15.064 # You requested maxclients of 2000000 requiring at least 2000032 max file descriptors.
4674:P 02 Jun 14:27:15.064 # Disque can't set maximum open files to 2000032 because of OS error: Operation not permitted.
4674:P 02 Jun 14:27:15.064 # Current maximum open files is 1024. maxclients has been reduced to 1048544 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
4674:P 02 Jun 14:27:15.103 * Node configuration loaded, I'm 2ffa71e35d1de4cb46980627e4a91f14b69624c4
Disque 0.0.1 (b5264359/0) 64 bit
_ -
. Port: 7711
. o . PID: 4674
.
- http://disque.io
@renatoc
renatoc / gist:63f133e4e93019a382d3
Created June 2, 2015 14:39
Machine 2( disque 7712) log
4682:P 02 Jun 14:27:34.724 # You requested maxclients of 2000000 requiring at least 2000032 max file descriptors.
4682:P 02 Jun 14:27:34.724 # Disque can't set maximum open files to 2000032 because of OS error: Operation not permitted.
4682:P 02 Jun 14:27:34.724 # Current maximum open files is 1024. maxclients has been reduced to 1048544 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
4682:P 02 Jun 14:27:34.763 * Node configuration loaded, I'm 1464ba735bfa3451c366ecc1faf2a8ca9e309a13
Disque 0.0.1 (b5264359/0) 64 bit
_ -
. Port: 7712
. o . PID: 4682
.
- http://disque.io
root@ip-10-158-141-120:/opt/disque-test/tools# disque -p 7711 cluster meet 54.234.3.108 7711
OK
root@ip-10-158-141-120:/opt/disque-test/tools# disque -p 7711 cluster meet 54.234.3.108 7712
OK
root@ip-10-158-141-120:/opt/disque-test/tools# disque -p 7712 cluster meet 54.234.3.108 7711
OK
root@ip-10-158-141-120:/opt/disque-test/tools# disque -p 7712 cluster meet 54.234.3.108 7712
OK