Note that there are some explanatory texts on larger screens.

plurals
  1. POKeeping a Ruby Service running on Elastic Beanstalk
    primarykey
    data
    text
    <p>I have been looking for a while now on setting up worker nodes in a cloud native application. I plan to have an autoscaling group of worker nodes pulling jobs from a queue, nothing special there.</p> <p>I am just wondering, is there any best practice way to ensure that a (eg. ruby) script is running at all times? My current assumption is that you have a script running that polls the queue for jobs and sleeps for a few seconds or so if a job query returns no new job.</p> <p>What really caught my attention was the Services key in the Linux Custom Config section of AWS Elastic Beanstalk Documentation.</p> <p>00_start_service.config</p> <pre><code>services: sysvinit: &lt;name of service&gt;: enabled: true ensureRunning: true files: "&lt;file name&gt;" sources: "&lt;directory&gt;" packages: &lt;name of package manager&gt;: &lt;package name&gt;: &lt;version&gt; commands: &lt;name of command&gt;: </code></pre> <p><a href="http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customize-containers-ec2.html" rel="nofollow">http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customize-containers-ec2.html</a></p> <p>The example they give is this..</p> <pre><code>services: sysvinit: myservice: enabled: true ensureRunning: true </code></pre> <p>I find the example and documentation extremely vague and I have no idea how to get my own service up and running using this config key, which means I do not even know if this is what I want or need to use. I have tried creating a ruby executable file and putting the name in the field, but no luck.</p> <p>I asked the AWS forums for more clarification and have received no response.</p> <p>If anyone has any insight or direction on how this can be achieved, I would greatly appreciate it. Thank you!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload