{ "info": { "author": "Egon Rijpkema", "author_email": "e.m.a.rijpkema@rug.nl", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Topic :: Utilities" ], "description": "# Kill hogs\n\nWe at team HPC of the university of Groningen run job schedueling clusters.\nSome users are running their programs on the login node of these clusters instead of submitting jobs. This leads to a high load on the login node, which leads to unhappy users who are unable to submit jobs.\n\"kill hogs\" is a crude attempt at mittigating these problems. It is a cronjob that checks the resources (cpu and ram) that are used by each user. If they reach a certain treshold, all the user's processes above a minimum treshold are killed. \nThe user is informed of this via a message in the terminal.\nA message is also send to slack to inform us.\n\n\n**this program might kill processes you don't want killed and lock you out**\n\n\n## Installation.\n\nWe install the cronjob via ansible on a centos7 host instead of installing the requirements with pip, we opt for the following yum packages.\n\n- python36-requests\n- python36-psutil\n\nThe cronjob looks like this:\n\n```cronjob\n*/2 * * * * root /usr/bin/python36 /opt/kill_hoggs/kill_hoggs.py --slack\n```\n\n## Run tests\n\n```python\n\npython -m unittest unittests.test_kill_hogs\n\n# Or if you want coverage information.\ncoverage run -m unittest unittests.test_kill_hogs\ncoverage report -m kill_hogs.py\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://packages.python.org/kill_hogs", "keywords": "HPC tools load memory kill", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "kill-hogs", "package_url": "https://pypi.org/project/kill-hogs/", "platform": "", "project_url": "https://pypi.org/project/kill-hogs/", "project_urls": { "Homepage": "http://packages.python.org/kill_hogs" }, "release_url": "https://pypi.org/project/kill-hogs/0.1/", "requires_dist": null, "requires_python": ">=3.6", "summary": "A script that kills processes of users generating excessive load.It is meant with HPC login nodes in mind.", "version": "0.1" }, "last_serial": 5836129, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "474876ebb59deed48cb26bb456916f6a", "sha256": "0877f98fcd2bb25df2b40130dcc8694fa43c9391eda53885f9bf31d00a384d71" }, "downloads": -1, "filename": "kill_hogs-0.1-py3.7.egg", "has_sig": false, "md5_digest": "474876ebb59deed48cb26bb456916f6a", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": ">=3.6", "size": 17093, "upload_time": "2019-09-16T13:10:05", "url": "https://files.pythonhosted.org/packages/cc/d8/f4514a77d000499414b361d7e712ecbea6f6069525939878e1d6ccb41a33/kill_hogs-0.1-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "15b11f9344ff7dbaccb7898e4dc997ba", "sha256": "18e130a2fc2a8b01c75b1110bafb86512cf5d6990783e6ce118eab6790265b1c" }, "downloads": -1, "filename": "kill_hogs-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "15b11f9344ff7dbaccb7898e4dc997ba", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 21439, "upload_time": "2019-09-16T13:09:30", "url": "https://files.pythonhosted.org/packages/95/40/791fd8c92429c69583adfeaef08140e219ea1ee693cbb57a546a223a792f/kill_hogs-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "22b5637fbf12675f2f24f1862f0ab00e", "sha256": "e0a54cb7b0d82757381073bdbc7087db224623bea5b9ea8c64914ef7b50c1c46" }, "downloads": -1, "filename": "kill hogs-0.1.tar.gz", "has_sig": false, "md5_digest": "22b5637fbf12675f2f24f1862f0ab00e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 7248, "upload_time": "2019-09-16T13:10:07", "url": "https://files.pythonhosted.org/packages/41/89/029d564c16454ef63df943540ba0479c4a7ca2999c440ead41e544c50871/kill%20hogs-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "474876ebb59deed48cb26bb456916f6a", "sha256": "0877f98fcd2bb25df2b40130dcc8694fa43c9391eda53885f9bf31d00a384d71" }, "downloads": -1, "filename": "kill_hogs-0.1-py3.7.egg", "has_sig": false, "md5_digest": "474876ebb59deed48cb26bb456916f6a", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": ">=3.6", "size": 17093, "upload_time": "2019-09-16T13:10:05", "url": "https://files.pythonhosted.org/packages/cc/d8/f4514a77d000499414b361d7e712ecbea6f6069525939878e1d6ccb41a33/kill_hogs-0.1-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "15b11f9344ff7dbaccb7898e4dc997ba", "sha256": "18e130a2fc2a8b01c75b1110bafb86512cf5d6990783e6ce118eab6790265b1c" }, "downloads": -1, "filename": "kill_hogs-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "15b11f9344ff7dbaccb7898e4dc997ba", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 21439, "upload_time": "2019-09-16T13:09:30", "url": "https://files.pythonhosted.org/packages/95/40/791fd8c92429c69583adfeaef08140e219ea1ee693cbb57a546a223a792f/kill_hogs-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "22b5637fbf12675f2f24f1862f0ab00e", "sha256": "e0a54cb7b0d82757381073bdbc7087db224623bea5b9ea8c64914ef7b50c1c46" }, "downloads": -1, "filename": "kill hogs-0.1.tar.gz", "has_sig": false, "md5_digest": "22b5637fbf12675f2f24f1862f0ab00e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 7248, "upload_time": "2019-09-16T13:10:07", "url": "https://files.pythonhosted.org/packages/41/89/029d564c16454ef63df943540ba0479c4a7ca2999c440ead41e544c50871/kill%20hogs-0.1.tar.gz" } ] }