{"id":15048130,"url":"https://github.com/github/ernicorn","last_synced_at":"2025-10-04T07:31:14.694Z","repository":{"id":3669511,"uuid":"4738574","full_name":"github/ernicorn","owner":"github","description":"Ruby BERTRPC server based on Unicorn","archived":true,"fork":false,"pushed_at":"2020-06-24T19:03:51.000Z","size":64,"stargazers_count":24,"open_issues_count":3,"forks_count":18,"subscribers_count":274,"default_branch":"master","last_synced_at":"2024-09-30T00:06:05.697Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/github.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-21T11:59:28.000Z","updated_at":"2024-07-31T03:17:32.000Z","dependencies_parsed_at":"2022-08-31T04:01:14.592Z","dependency_job_id":null,"html_url":"https://github.com/github/ernicorn","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fernicorn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fernicorn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fernicorn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fernicorn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github","download_url":"https://codeload.github.com/github/ernicorn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235227462,"owners_count":18956137,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-24T21:08:30.843Z","updated_at":"2025-10-04T07:31:09.322Z","avatar_url":"https://github.com/github.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Ernicorn\n========\n\nA BERT-RPC server based on [Ernie](https://github.com/mojombo/ernie)'s Ruby\ninterface but that uses [Unicorn](http://unicorn.bogomips.org/) for worker\nprocess management.\n\nErnicorn supports BERT-RPC `call` and `cast` requests. See the full BERT-RPC\nspecification at [bert-rpc.org](http://bert-rpc.org) for more information.\n\nLike Ernie before it, Ernicorn was developed at GitHub and is currently in\nproduction use serving millions of RPC requests every day.\n\nInstallation\n------------\n\n    $ gem install ernicorn\n\nStarting The Server\n-------------------\n\nUse the `ernicorn` command to start a new RPC server:\n\n    $ ernicorn --help\n    Usage: ernicorn [options] [config file]\n    Start a Ruby BERT-RPC Server with the given options and config file.\n\n    Options\n      -h, --host=\u003chost\u003e          Server address to listen on; default: 0.0.0.0\n      -p, --port=\u003cportno\u003e        Server port to listen on; default: 8149\n      -l, --listen=\u003chost\u003e:\u003cport\u003e Listen addresses. Can be specified multiple times\n          --log-level=0-4        Set the log level\n      -d, --detached             Run as a daemon\n      -P, --pidfile=\u003cfile\u003e       Location to write pid file\n\nThe ernicorn server attempts to load the config file given or\n`config/ernicorn.rb` when no config file is specified. See the example config\nfile [examples/config.rb][c] to get started. All [Unicorn config options][r] are\nsupported.\n\nThe config file should require any libraries needed for the server and register\nserver modules with `Ernicorn.expose(:modulename, TheModule)`. See the\n[examples/handler.rb][h] file for a simple example handler.\n\n[h]: https://github.com/github/ernicorn/blob/master/examples/handler.rb\n[c]: https://github.com/github/ernicorn/blob/master/examples/config.rb\n[r]: http://unicorn.bogomips.org/Unicorn/Configurator.html\n\nControl Commands\n----------------\n\nThe `ernicorn-ctrl` command can be used to send various control and\ninformational commands to the running server process:\n\n    $ ernicorn-ctrl --help\n    Usage: ernicorn-ctrl [-p \u003cport\u003e] \u003ccommand\u003e\n    Issue a control command to an ernicorn server. The port option is used to\n    specify a non-default control port.\n\n    Commands:\n      reload-handlers         Gracefully reload all handler processes.\n      stats                   Dump handler stats for the server.\n      halt                    Shut down.\n\nErnicorn servers also support most Unicorn signals for managing worker processes\nand whatnot. See the [SIGNALS](http://unicorn.bogomips.org/SIGNALS.html) file\nfor more info.\n\nDevelopment\n-----------\n\nThe `script/bootstrap` command is provided to setup a local gem environment for\ndevelopment.\n\n    $ script/bootstrap\n\nIt installs all gems under `vendor/gems` and creates binstubs under a `bin`\ndirectory. This is the best way to get setup for running tests and experimenting\nin a sandbox.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fernicorn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub%2Fernicorn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fernicorn/lists"}