Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Start/stop sqsd daemon on Elastic Beanstalk to view SQS queue messages

I would like to view SQS messages before they get picked up by sqsd on my Elastic Beanstalk intstance. Is there a way, once ssh'ed into the instance, that sqsd can be stopped / started as a service all together?

like image 367
josef.van.niekerk Avatar asked Jun 11 '14 21:06

josef.van.niekerk


People also ask

What is SQS daemon?

SQS Daemon is an inbuilt process that runs on a worker instance, which listens for messages in Amazon SQS queue. Once a message placed into the queue, SQSD (SQS Daemon) pulls the message and invoke an http POST method to http ://localhost/ on port 80. The body of request contains message from the queue.

How can we run a worker with AWS Elastic Beanstalk?

Log in to the AWS Elastic Beanstalk Web Console and click on Create New Application. Enter the application name and description and click Create. Select Worker for the Environment tier drop down, Python for the Predefined configuration and Single instance for Environment type. Click Continue.

What is Elastic Beanstalk used for?

AWS Elastic Beanstalk is an easy-to-use service for deploying and scaling web applications and services developed with Java, . NET, PHP, Node. js, Python, Ruby, Go, and Docker on familiar servers such as Apache, Nginx, Passenger, and IIS.


1 Answers

For the purpose of debugging you may stop sqsd by running sudo service aws-sqsd stop on the instance. You can check the status by running sudo service aws-sqsd status. Note this is not recommended for a production service but for the purpose of debugging you may try this.

like image 81
Rohit Banga Avatar answered Oct 06 '22 00:10

Rohit Banga