mirror of
https://github.com/arcan1s/arcanis.me.git
synced 2025-04-24 23:37:19 +00:00
Added queued page
This commit is contained in:
parent
51b6a0d44f
commit
a501c6c07b
150
projects/queued.html
Normal file
150
projects/queued.html
Normal file
@ -0,0 +1,150 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||||
|
<title>queued</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/stylesheets/styles.css">
|
||||||
|
<link rel="stylesheet" href="/stylesheets/pygment_trac.css">
|
||||||
|
<link rel="shortcut icon" href="/resources/icon.ico">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="wrapper">
|
||||||
|
<header>
|
||||||
|
<h1>queued</h1>
|
||||||
|
<p class="view">Daemon for starting jobs to queue of calculations</p>
|
||||||
|
<p class="view"><a href="#information">General information</a><br>
|
||||||
|
<a href="#installation">Installation guide</a><br>
|
||||||
|
<a href="#howto">How to use</a><br>
|
||||||
|
<a href="#adding">Adding a job</a><br>
|
||||||
|
<a href="#configuration">Configuration</a><br>
|
||||||
|
<a href="#links">Links</a></p>
|
||||||
|
</header>
|
||||||
|
<section>
|
||||||
|
|
||||||
|
<h2><a name="information" class="anchor" href="#information"><span class="octicon octicon-link"></span></a>Information</h2>
|
||||||
|
<p align="justify">Daemon for starting jobs to queue of calculations. It was written as proof-of-concept.</p>
|
||||||
|
<pre><code>$ queued --help
|
||||||
|
Simple daemon written on BASH for starting jobs to queue of calculations
|
||||||
|
|
||||||
|
Usage: queued [ -c /etc/queued.conf ] [ -v | --version ] [ -h | --help ]
|
||||||
|
Parametrs:
|
||||||
|
-c PATH - path to configuration file. Default is '/etc/queued.conf'
|
||||||
|
|
||||||
|
-v --version - show version and exit
|
||||||
|
-h --help - show this help and exit</code></pre>
|
||||||
|
<pre><code>$ add_queued --help
|
||||||
|
add_queued [ -c /etc/queued.conf ] [ -p NUM ] [ -u USER ] [ -h | --help ] /path/to/script
|
||||||
|
|
||||||
|
Parameters:
|
||||||
|
-c PATH - path to configuration file. Default is '/etc/queued.conf'
|
||||||
|
-p NUM - job priority
|
||||||
|
-u USER - username
|
||||||
|
-h --help - show this help and exit</code></pre>
|
||||||
|
|
||||||
|
<h3><a name="devel" class="anchor" href="#devel"><span class="octicon octicon-link"></span></a>Developers and contributors</h3>
|
||||||
|
<ul>
|
||||||
|
<li>Evgeniy Alekseev</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h3><a name="license" class="anchor" href="#license"><span class="octicon octicon-link"></span></a>License</h3>
|
||||||
|
<ul>
|
||||||
|
<li>GPLv3</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h2><a name="installation" class="anchor" href="#installation"><span class="octicon octicon-link"></span></a>Installation</h2>
|
||||||
|
|
||||||
|
<h3><a name="instruction" class="anchor" href="#instruction"><span class="octicon octicon-link"></span></a>Instruction</h3>
|
||||||
|
<ul>
|
||||||
|
<li><p align="justify">Download an <a href="https://github.com/arcan1s/queued/releases">archive</a> with latest version of source files.</p></li>
|
||||||
|
<li><p align="justify">Extract it and install the application:</p>
|
||||||
|
<pre><code>./install.sh "/path/to/root/package"</code></pre>
|
||||||
|
<p align="justify">If you want install it to <code>/</code> you must run it as root, e.g.:</p>
|
||||||
|
<pre><code>sudo ./install.sh "/path/to/root/package"</code></pre>
|
||||||
|
<p align="justify">If no path is specified it will be installed to <code>/</code> by default.</p></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h3><a name="dependencies" class="anchor" href="#dependencies"><span class="octicon octicon-link"></span></a>Dependencies</h3>
|
||||||
|
<p align="justify">I want note that all were tested on latest version of dependencies.</p>
|
||||||
|
<ul>
|
||||||
|
<li>Bash (including awk, grep, sed)</li>
|
||||||
|
<li>systemd <i>(optional, service file)</i></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h2><a name="howto" class="anchor" href="#howto"><span class="octicon octicon-link"></span></a>How to use</h2>
|
||||||
|
<p align="justify">If you want to start the daemon just run</p>
|
||||||
|
<pre><code>systemctl start queued</code></pre>
|
||||||
|
<p align="justify">If you want to enable daemon autoload run</p>
|
||||||
|
<pre><code>systemctl enable queued</code></pre>
|
||||||
|
<p align="justify">But you may change path to configuration file or change parameters. To do it just copy (recommended) the source configuration file to new path</p>
|
||||||
|
<pre><code>cp /etc/queued.conf /path/to/new/queued.conf</code></pre>
|
||||||
|
<p align="justify">and edit it. Then copy the source service file to <code>/etc</code>:</p>
|
||||||
|
<pre><code>cp /usr/lib/systemd/system/queued.service /etc/systemd/system/queued-my-profile.service</code></pre>
|
||||||
|
<p align="justify">Replace following string in the file:</p>
|
||||||
|
<pre><code>ExecStart=/usr/bin/queued</code></pre>
|
||||||
|
<p align="justify">to</p>
|
||||||
|
<pre><code>ExecStart=/usr/bin/queued -c /path/to/new/queued.conf</code></pre>
|
||||||
|
|
||||||
|
<h3><a name="adding" class="anchor" href="#adding"><span class="octicon octicon-link"></span></a>Adding a job</h3>
|
||||||
|
<ol>
|
||||||
|
<li>Create shell script with the command (e.g. it have a name <code>script.sh</code>)</li>
|
||||||
|
<li>Create priority file (<code>script.sh.pr</code>) with the job priority if it is needed</li>
|
||||||
|
<li>Create user file (<code>script.sh.user</code>) with the job username if it is needed</li>
|
||||||
|
<li>Copy files to <code>$WORKDIR</code></li>
|
||||||
|
</ol>
|
||||||
|
<p align="justify">Also you may use <code>add_queued</code>.</p>
|
||||||
|
|
||||||
|
<h2><a name="configuration" class="anchor" href="#configuration"><span class="octicon octicon-link"></span></a>Configuration</h2>
|
||||||
|
<p align="justify">All settings are stored in <code>/etc/queued.conf</code>. After edit them you must restart daemon</p>
|
||||||
|
<pre><code>systemctl restart queued</code></pre>
|
||||||
|
|
||||||
|
<h3><a name="options" class="anchor" href="#options"><span class="octicon octicon-link"></span></a>Options</h3>
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<th>WORKDIR</th>
|
||||||
|
<td><p align="justify">Full path to directory with source jobs. Default is <code>/var/lib/queued/work</code>. This directory must contain source scripts <code>script-name</code>, a priority file (it is not necessary) <code>script-name.pr</code> and a file with username (it is not necessary too) <code>script-name.user</code>.</p></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>JOBDIR</th>
|
||||||
|
<td><p align="justify">Full path to directory with running jobs. Default is <code>/var/lib/queued/job</code>. All job files will be moved here.</p></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>QUEUEFILE</th>
|
||||||
|
<td><p align="justify">Full path to file with queue list. Default is <code>/var/lib/queued/queue</code>.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>PRIORITY</th>
|
||||||
|
<td><p align="justify">Default priority. Default is <code>0</code>. The higher the value, the higher the priority of the task.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>SLEEPTIME</th>
|
||||||
|
<td><p align="justify">Time interval in minutes. Default is <code>5</code>.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>STARTASUSER</th>
|
||||||
|
<td><p align="justify">Default user. Default is <code>root</code>. This user will own created files.</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<h2><a name="links" class="anchor" href="#links"><span class="octicon octicon-link"></span></a>Links</h2>
|
||||||
|
<ul>
|
||||||
|
<li><a href="https://github.com/arcan1s/queued">GitHub repo</a></li>
|
||||||
|
<li><a href="https://github.com/arcan1s/queued/releases">Latest release</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<footer>
|
||||||
|
<p class="view"><a href="javascript:history.back()">Back</a><br>
|
||||||
|
<a href="/index.html">Back to Homepage</a></p>
|
||||||
|
<p><small>Hosted on GitHub Pages — Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p>
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
<script src="/javascripts/scale.fix.js"></script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -1,8 +1,8 @@
|
|||||||
User-agent: *
|
User-agent: *
|
||||||
Disallow:
|
Disallow:
|
||||||
Disallow: /cgi-bin/
|
|
||||||
Disallow: /javascripts/
|
Disallow: /javascripts/
|
||||||
Disallow: /stylesheets/
|
Disallow: /stylesheets/
|
||||||
|
Disallow: /params.json
|
||||||
Disallow: /README.md
|
Disallow: /README.md
|
||||||
Disallow: /TODO
|
Disallow: /TODO
|
||||||
Sitemap: http://arcan1s.github.io/sitemap.xml
|
Sitemap: http://arcan1s.github.io/sitemap.xml
|
||||||
|
@ -30,4 +30,8 @@
|
|||||||
<loc>http://arcan1s.github.io/projects/git-etc.html</loc>
|
<loc>http://arcan1s.github.io/projects/git-etc.html</loc>
|
||||||
<lastmod>2014-01-12T11:33:16+00:00</lastmod>
|
<lastmod>2014-01-12T11:33:16+00:00</lastmod>
|
||||||
</url>
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://arcan1s.github.io/projects/queued.html</loc>
|
||||||
|
<lastmod>2014-01-12T11:33:16+00:00</lastmod>
|
||||||
|
</url>
|
||||||
</urlset>
|
</urlset>
|
Loading…
Reference in New Issue
Block a user