Ruby high CPU Usage Even using ELB with 2 M3.large type Instance in AWS why? [closed] - ruby-on-rails-3

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am using EC2 servers (with 2 instances m3.large type in Elastic Load Balancer) with Ruby on Rails3 installed for API calls and Database RDS(Mysql), I created an alarm in AWS for my instance CPU Utilization greater than 80%.
I am getting High CPU Utilization issue by mail since one week, and many of my app users are not even log in or signup that time due to this issue.
I used top command to find out the process, where I found the Ruby command is responsible for 100% CPU usage, below is the detail of top command -
user ec2-user %CPU 100 Command ruby
please help me how it can be solved.

Related

How to make email alert to be sent when a openstack instance is down? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Does openstack have any feature to achieve this scenario:
Check the status of openstack instances (user is able to ssh and work or not).
Get the set of instances IP which is not working.
Send an email to a user with list of not working instances.
If this is not available, any alternatives?.
Went through https://wiki.openstack.org/wiki/Operations/Tools. but could not find the one which suits my scenario.
For that you can install elasticsearch nodes on your instances, and thanks to plugins like heartbeat (https://www.elastic.co/beats/heartbeat), you can have an overview of the availability of your servers, and their access.
Monitoring is the best practice for having this kind of information, the ELK (Elasticsearch Logstash Kibana) suite does it very well for free and allows you to alert (by email or other) if one of your instances no longer responds.
You can use Mistral project for such used case , Set a cloud cron for it.

Hive / Hadoop: Monitor the running processes [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Is there anyway to monitor running Hive processes and ensure that they are indeed working in parallel?
I have setup an experimental Linux cluster (4 machines) and would like to understand the underlying processes.
top and ps don't give me too much info.
Hive query is divided into several MR called sql_text-stage 1, sql_text-stage-2 etc.
You can enter UI of your cluster's JobTracker web UI on
job_tracker_adress:50030
There you will see hive jobs and their progress.
For each job there will be list of tasks and for each task you can see on which nodes they are running, and their basic statistics

Debian, apache. Log files eats up all disk space [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I only have 32 GB disk space on my VPS, and currently the logfiles takes 26 GB. I found the files: access.log.1 and error.log.1, which is 17 gb together (var/log/apache2).
Can I just remove these files to free up some space?
Is it possible to stop the logging function? I know very litte about servers, and don't understand the logs anyways.
Thanks
if you dont need them, then remove it.
maybe you should install logrotate to delete these files automaticly after some time.
the access and error logs are mostly used for debugging (in my case) or for statistics or because of legal reasons.
You can also disable them: just comment out the lines regarding log in the config for the site (/etc/apache2/sites-available/*)

Offloading Data Crunching Processes [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Does anyone have information/ideas about offloading SQL data processes to other hardware, possibly in a cloud environment (internal or external)? We have nightly processes that we really don't have the processing power to complete in a nightly fashion and are looking for other alternatives. We are considering new hardware, but that won't happen for a while.
More details about out situation:
We are using & licensed(SA) for Sql Server 2008, 2 cpu currently. The server is backended by an EVA 4000 with maxed out spindles. Our database is almost 2TB in size. We have lots of nightly processes that crunch data for summary tables and that do scheduling of our customer email sends. Currently, we are limited by what the EVA can physically do. Most of the time, the read and writes are what take the longest. We are considering moving off the EVA for something else, but this will not happen until 2013 or 2014.
I would recommend you checkout Amazon Web Services: http://aws.amazon.com/running_databases/

Amazon Instance Network Out Spike (Attacked?) [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I've been developing a website on a Micro EC2 Instance. This morning, it stopped responding and when I went to the AWS console, it showed that there had been a spike in Networking Out.
I don't have any traffic to speak of yet and I'm not scrapping in an automated fashion.
Does this mean that someone found my site and DOS attacked me or something along those lines?
Thanks
One of Amazon's datacenters suffered an outage today and it is affecting several large companies.
Please check http://status.aws.amazon.com/ for more information. It's possible that you are being affected by this.
http://status.aws.amazon.com/
Also, this question doesn't belong on StackOverflow.