This website does readability filtering of other pages. All styles, scripts, forms and ads are stripped. If you want your website excluded or have other feedback, use this form.

README.md · tool-grid-jobs

HomePhabricator

Log In Diffusion tool-grid-jobs (master) Browse

tool-grid-jobs/README.md24f012796686master

Last Change Raw File

README.md View Options

sge-jobs ======== List tools running on Toolforge Son of Grid Engine exec nodes. Install ------- Clone repo and create basic files: ``` bastion$ become sge-jobs [email protected]:~$ mkdir -p ~/www/python [email protected]:~$ git clone https://phabricator.wikimedia.org/source/tool-grid-jobs.git ~/www/python/src ``` Create virtualenv inside kubernetes: ``` [email protected]:~$ webservice --backend=kubernetes python shell [email protected]:~$ python3 -m venv ~/www/python/venv [email protected]:~$ source ~/www/python/venv/bin/activate (venv)[email protected]:~$ pip install -U pip (venv)[email protected]:~$ pip install -r ~/www/python/src/requirements.txt ``` Back to bastion, start the webservice: ``` [email protected]:~$ webservice --backend=kubernetes python start ``` Creating the list is pretty expensive and we don't need it to be a real time display, so a nice thing to do is setup a cron job to collect new data once an hour: ``` 21 * * * * jstart -N update-cache curl 'https://tools.wmflabs.org/sge-jobs/?purge' ``` License ------- [GNU GPLv3+](//www.gnu.org/copyleft/gpl.html "GNU GPLv3+") Forked from [precise-tools](https://phabricator.wikimedia.org/source/tool-precise-tools/) Content licensed under Creative Commons Attribution-ShareAlike 3.0 (CC-BY-SA) unless otherwise noted; code licensed under GNU General Public License (GPL) or other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL