{
"info": {
"author": "Nick Stenning",
"author_email": "nick@whiteink.com",
"bugtrack_url": null,
"classifiers": [],
"description": "Unicorn Herder\n==============\n\n.. image:: https://secure.travis-ci.org/gds-operations/unicornherder.png\n :target: http://travis-ci.org/gds-operations/unicornherder\n\n`Unicorn `_ and `Gunicorn\n`_ are awesome tools for people writing web services in\nRuby and Python. One of the more nifty features of both programs is their\nability to reload application code on-the-fly, by spawning a new master\nprocess (or \"arbiter\", in Gunicorn's language) in response to an operating\nsystem signal (SIGUSR2). Unfortunately, this reloading process is incompatible\nwith process-tracking supervisors such as `Upstart\n`_, because the old master process dies as part of\nthe reload.\n\nUnicorn Herder is a utility designed to assist in the use of Upstart and\nsimilar supervisors with Unicorn. It does this by polling the pidfile written\nby the Unicorn master process, and automating the sequence of signals that\nmust be sent to the master to do a \"hot-reload\". If Unicorn quits, so will the\nUnicorn Herder, meaning that if you supervise the herder (which does not\ndaemonize), you are effectively supervising the Unicorn process.\n\nInstallation\n------------\n\nUnicorn Herder is available from the `Python Package Index\n`_, and can be installed with `pip\n`_::\n\n $ pip install unicornherder\n\nUsage\n-----\n\nWith gunicorn::\n\n $ unicornherder -- -w 4 myapp:app\n\nWith unicorn (using `Bundler `_)::\n\n $ bundle exec unicornherder -u unicorn\n\nSignals\n-------\n\nUnicorn Herder forwards the following signals to the unicorn master process::\n\n INT QUIT TERM TTIN TTOU USR1 USR2\n\nNotably, Unicorn Herder does *not* forward ``SIGWINCH``, because it is not\nintended to be daemonized.\n\nUnicorn Herder *also* intercepts ``SIGHUP``, because this is the signal sent by\nUpstart when you call ``initctl reload``, and uses it to trigger a hot-reload of\nits Unicorn instance. This process will take two minutes by default, in order to\ngive the new workers time to start up.\n\n**NB**: There will be a period during hot-reload when requests are served by\nboth old and new workers. This might have serious implications if you are\nrunning data migrations between deploying versions of your application. Please\nbear this in mind when deciding if you should use Unicorn Herder's\nhot-reloading feature.\n\nThis diagram shows the interactions between unicornherder and (g)unicorn masters\nat boot and around hot-reloading with HUP (ignoring workers):\n\n.. image:: unicornherder-diagram.jpeg\n\nUpstart config\n--------------\n\nAn example upstart config (compatible with Upstart v1.4 and later) for use\nwith Unicorn Herder is given below::\n\n description \"Unicorn Herder\"\n\n start on runlevel [2345]\n stop on runlevel [!2345]\n\n respawn\n respawn limit 5 20\n\n env PORT=4567\n\n setuid www\n setgid www\n\n chdir /var/apps/myapp\n\n exec bundle exec unicornherder -u unicorn -- --port $PORT\n\n # Or, for a gunicorn installation with a virtualenv\n # at /var/venv/myapp...\n\n #script\n # . /var/venv/myapp/bin/activate\n # exec unicornherder -- -w 4 -b \"127.0.0.1:$PORT\" myapp:app\n #end script\n\nDiscussion\n----------\n\nYou can discuss this tool with our open source mailing list: gds-operations-open-source@digital.cabinet-office.gov.uk\n\nLicense\n-------\n\nUnicorn Herder is released under the MIT license, a copy of which can be found\nin ``LICENSE``.",
"description_content_type": "",
"docs_url": null,
"download_url": "",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/gds-operations/unicornherder",
"keywords": "sysadmin process supervision unicorn gunicorn upstart",
"license": "MIT",
"maintainer": "Government Digital Service",
"maintainer_email": "gds-operations-open-source@digital.cabinet-office.gov.uk",
"name": "unicornherder",
"package_url": "https://pypi.org/project/unicornherder/",
"platform": "",
"project_url": "https://pypi.org/project/unicornherder/",
"project_urls": {
"Homepage": "https://github.com/gds-operations/unicornherder"
},
"release_url": "https://pypi.org/project/unicornherder/0.1.0/",
"requires_dist": null,
"requires_python": "",
"summary": "Unicorn Herder: manage daemonized (g)unicorns",
"version": "0.1.0"
},
"last_serial": 5128825,
"releases": {
"0.0.1": [
{
"comment_text": "",
"digests": {
"md5": "0df5a0d7720bff3690704c3141a54ea5",
"sha256": "22ac7cfe19ef4dc52af171e943069e84683d71e71172918115ee156ceebb3502"
},
"downloads": -1,
"filename": "unicornherder-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "0df5a0d7720bff3690704c3141a54ea5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6427,
"upload_time": "2012-08-03T19:51:40",
"url": "https://files.pythonhosted.org/packages/73/ca/be21185dd15c988ea563fa030d588a362d3b0a74ee09f6a5ef03d5e9fdba/unicornherder-0.0.1.tar.gz"
}
],
"0.0.10": [
{
"comment_text": "",
"digests": {
"md5": "e76b3abb502d96ec3e394a4392c80804",
"sha256": "2e73423a08ed08ebe84208158cd9409c979aa24c36998896a14ee16cccec9007"
},
"downloads": -1,
"filename": "unicornherder-0.0.10.tar.gz",
"has_sig": false,
"md5_digest": "e76b3abb502d96ec3e394a4392c80804",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 9154,
"upload_time": "2014-10-09T08:46:10",
"url": "https://files.pythonhosted.org/packages/ab/29/e9827a26cdd1923c89a86f8e2e9dad10d8523311fbb3e91035b82bbe58c1/unicornherder-0.0.10.tar.gz"
}
],
"0.0.11": [
{
"comment_text": "",
"digests": {
"md5": "d66a5964936ad98e2ad67c7826930506",
"sha256": "50de04de6b87209f57fa4176b13de533fee9cc59c09f8cdadd45f34d67d086d7"
},
"downloads": -1,
"filename": "unicornherder-0.0.11.tar.gz",
"has_sig": false,
"md5_digest": "d66a5964936ad98e2ad67c7826930506",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 9895,
"upload_time": "2015-02-10T16:31:36",
"url": "https://files.pythonhosted.org/packages/33/30/20ab9c0f470b23cc73ce951f9826363bbf33e8113847300aadef17c666bf/unicornherder-0.0.11.tar.gz"
}
],
"0.0.2": [
{
"comment_text": "",
"digests": {
"md5": "6dfcce335d24b77f0e2d0a9ddad06ba0",
"sha256": "bc4155a53ba49c37be530995cf978053ebfa36215a5ee5283570cc80da61a562"
},
"downloads": -1,
"filename": "unicornherder-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "6dfcce335d24b77f0e2d0a9ddad06ba0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 7571,
"upload_time": "2012-08-24T10:28:48",
"url": "https://files.pythonhosted.org/packages/5f/99/dce6f24643ffa1a89dfb31c91bb3b41a1d1682e3ec42f2403b196e4f57d3/unicornherder-0.0.2.tar.gz"
}
],
"0.0.3": [
{
"comment_text": "",
"digests": {
"md5": "2c02ab435f2a30f77a72970ab1e6a36f",
"sha256": "f6957486997087a4940f44bcf6b4e4f7ea0caa0c0daf43686e27cdd5149f0d53"
},
"downloads": -1,
"filename": "unicornherder-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "2c02ab435f2a30f77a72970ab1e6a36f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6954,
"upload_time": "2012-08-29T16:53:52",
"url": "https://files.pythonhosted.org/packages/e1/30/98e4fc913a102209ed0223093372360d638542a14235281fb22565d20d96/unicornherder-0.0.3.tar.gz"
}
],
"0.0.4": [
{
"comment_text": "",
"digests": {
"md5": "3c8b11d2e0c70a579c628583067c9153",
"sha256": "10ce9fea86f7f8bd4b9e6a06a0574351bf12e648a712b0121dfd618476294c64"
},
"downloads": -1,
"filename": "unicornherder-0.0.4.tar.gz",
"has_sig": false,
"md5_digest": "3c8b11d2e0c70a579c628583067c9153",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 7901,
"upload_time": "2013-06-12T10:03:38",
"url": "https://files.pythonhosted.org/packages/10/68/7268de4c7ae837f81a1fb9c5d620b01d67c59dc2bfdf4e93f833eb93f6b3/unicornherder-0.0.4.tar.gz"
}
],
"0.0.5": [
{
"comment_text": "",
"digests": {
"md5": "993b7f1ae8c5f32ed49bcb59b22d016c",
"sha256": "8f40be0fa16b89d1ce88efcb2bcf4782f0b088d8792ae41d2a60f4d7af567aac"
},
"downloads": -1,
"filename": "unicornherder-0.0.5.tar.gz",
"has_sig": false,
"md5_digest": "993b7f1ae8c5f32ed49bcb59b22d016c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8824,
"upload_time": "2013-11-20T12:30:43",
"url": "https://files.pythonhosted.org/packages/90/38/a1fbb9007d230384dda5bb370694206af7701cd5497e3f840e3698307d8d/unicornherder-0.0.5.tar.gz"
}
],
"0.0.6": [
{
"comment_text": "",
"digests": {
"md5": "08dccc1d8e09d1c83f6d2472e7ca936e",
"sha256": "c9154f9fcfec2d4434e04ce5c63bf0d32982e188322c5bdc958299a16c836c9a"
},
"downloads": -1,
"filename": "unicornherder-0.0.6.tar.gz",
"has_sig": false,
"md5_digest": "08dccc1d8e09d1c83f6d2472e7ca936e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8915,
"upload_time": "2013-11-20T12:31:16",
"url": "https://files.pythonhosted.org/packages/db/9f/4d3cff02ba8a9090c5782edcaa580369b88802cb03b9d9eaf0f92d1cec0d/unicornherder-0.0.6.tar.gz"
}
],
"0.0.7": [
{
"comment_text": "",
"digests": {
"md5": "d8d9f22ed8179c1249f00764048def24",
"sha256": "b5d5257289c05b9929fad9c25acba45ab80614891d11d27dcae783d44c018a11"
},
"downloads": -1,
"filename": "unicornherder-0.0.7.tar.gz",
"has_sig": false,
"md5_digest": "d8d9f22ed8179c1249f00764048def24",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8976,
"upload_time": "2013-12-11T08:33:46",
"url": "https://files.pythonhosted.org/packages/b6/52/4fd18e570dfd5ccedda34ad852051518419426ad5ee830fe330cfb206759/unicornherder-0.0.7.tar.gz"
}
],
"0.0.8": [
{
"comment_text": "",
"digests": {
"md5": "33978b8165654810f8b9a638ccc0484a",
"sha256": "8e7442895869f161287e219b5ce8295b5cb3c997f7a202cce4a0cf4770f0aba7"
},
"downloads": -1,
"filename": "unicornherder-0.0.8.tar.gz",
"has_sig": false,
"md5_digest": "33978b8165654810f8b9a638ccc0484a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8985,
"upload_time": "2013-12-12T08:12:49",
"url": "https://files.pythonhosted.org/packages/7a/a3/aaa917454ff84e5228b75b23aecbf87914b56c8238daf2b5016f6ac3310b/unicornherder-0.0.8.tar.gz"
}
],
"0.0.9": [
{
"comment_text": "",
"digests": {
"md5": "246a4c2b4c311cd87546711be4f98b32",
"sha256": "a915df5b93206da544c909d9f75d81411eddd073c7f053c68a58d4f1c45feea8"
},
"downloads": -1,
"filename": "unicornherder-0.0.9.tar.gz",
"has_sig": false,
"md5_digest": "246a4c2b4c311cd87546711be4f98b32",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8990,
"upload_time": "2014-09-02T07:43:04",
"url": "https://files.pythonhosted.org/packages/c7/94/7f558eeb8a7c8f6c9493047e666105e21272ace876a5e9b1f42c4289dd44/unicornherder-0.0.9.tar.gz"
}
],
"0.1.0": [
{
"comment_text": "",
"digests": {
"md5": "43800835f1fa336ada0a766816c99de6",
"sha256": "56743ce63b2e408f8ef8da8e84c3ee77c0241b7859471a6932e83eb550bd38b6"
},
"downloads": -1,
"filename": "unicornherder-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "43800835f1fa336ada0a766816c99de6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 10239,
"upload_time": "2019-04-11T12:41:05",
"url": "https://files.pythonhosted.org/packages/6e/01/a24194b1167fb84b5c964ab8dc16e61ba8724fbb1579d598942c284b03b7/unicornherder-0.1.0.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "43800835f1fa336ada0a766816c99de6",
"sha256": "56743ce63b2e408f8ef8da8e84c3ee77c0241b7859471a6932e83eb550bd38b6"
},
"downloads": -1,
"filename": "unicornherder-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "43800835f1fa336ada0a766816c99de6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 10239,
"upload_time": "2019-04-11T12:41:05",
"url": "https://files.pythonhosted.org/packages/6e/01/a24194b1167fb84b5c964ab8dc16e61ba8724fbb1579d598942c284b03b7/unicornherder-0.1.0.tar.gz"
}
]
}