Skip to content

Instantly share code, notes, and snippets.

@romansergey
romansergey / Reel crash
Last active December 14, 2015 13:38
Celluloid stack failure
Starting server...
E, [2013-03-05T22:49:49.841000 #13369] ERROR -- : MyServer crashed!
IOError: closed stream
org/nio4r/Nio4r.java:143:in `register'
/home/me/.rvm/gems/jruby-1.7.2/gems/celluloid-io-0.12.1/lib/celluloid/io/reactor.rb:42:in `wait'
/home/me/.rvm/gems/jruby-1.7.2/gems/celluloid-io-0.12.1/lib/celluloid/io/reactor.rb:21:in `wait_readable'
org/jruby/RubyBasicObject.java:1665:in `__send__'
org/jruby/RubyKernel.java:1809:in `public_send'
/home/me/.rvm/gems/jruby-1.7.2/gems/celluloid-0.12.4/lib/celluloid/calls.rb:23:in `dispatch'
/home/me/.rvm/gems/jruby-1.7.2/gems/celluloid-0.12.4/lib/celluloid/actor.rb:327:in `handle_message'
@romansergey
romansergey / Gemfile
Last active December 14, 2015 14:49
@jruby-1.7.2 files to launch reel at see it crash under ab hit
source 'https://rubygems.org'
gem 'celluloid-io', :git => 'https://github.com/celluloid/celluloid-io.git'
gem 'celluloid', :git => 'https://github.com/celluloid/celluloid.git'
gem 'reel',:git => 'https://github.com/celluloid/reel.git'
@romansergey
romansergey / gist:e6534ca0c397f876b7a5
Created September 3, 2014 17:44
git push deis master
Counting objects: 1, done.
Writing objects: 100% (1/1), 182 bytes | 0 bytes/s, done.
Total 1 (delta 0), reused 0 (delta 0)
-----> Node.js app detected
-----> Requested node range: 0.10.x
-----> Resolved node version: 0.10.31
-----> Downloading and installing node
-----> Restoring node_modules directory from cache
-----> Pruning cached dependencies not specified in package.json
-----> Installing dependencies
@romansergey
romansergey / deis-controller journal
Created September 5, 2014 18:58
scaling up on Deis (installation based on ref: 4b1e6b81f1024888397b9ddd19e79ba72416cac3)
[2014-09-05 09:34:31,008: INFO/MainProcess] Received task: api.tasks.start_containers[47dfe3b7-0429-493d-be83-b3dbaa11e3d7]
[2014-09-05 09:34:31,017: WARNING/Worker-4] Creating qpb-dev_v6.web.2
[2014-09-05 09:34:32,931: WARNING/Worker-4] Starting qpb-dev_v6.web.2
Triggered job qpb-dev_v6.web.2.service start
Triggered job qpb-dev_v6.web.2-log.service start
Triggered job qpb-dev_v6.web.2-announce.service start
2014-09-05 09:42:38 [107] [DEBUG] GET /api/apps/qpb-dev/config
2014-09-05 09:44:31 [81] [CRITICAL] WORKER TIMEOUT (pid:18961)
2014-09-05 09:44:31 [81] [CRITICAL] WORKER TIMEOUT (pid:18961)
2014-09-05 09:44:31 [12769] [INFO] Booting worker with pid: 12769
@romansergey
romansergey / machine.js
Created September 20, 2020 16:05
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions