Skip to content

Commit

Permalink
Removing curl transmit info from stderr in cron logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rocco Muscaritolo authored and Rocco Muscaritolo committed Apr 3, 2014
1 parent 2f0c8d3 commit 102a63c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scale_cron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ maxclients=`sh /root/scaledown_check.sh | grep percent_maxclients | awk '{print
if awk -v ld=$load 'BEGIN {exit !(ld < 2)}' && awk -v mem=$mem 'BEGIN {exit !(mem < 30)}' && awk -v cli=$maxclients 'BEGIN {exit !(cli < 30)}'
then
echo `date` "Autoscale load check: Scaling DOWN by 1 server!"
curl -X POST https://iad.autoscale.api.rackspacecloud.com/v1.0/execute/1/13aa6c05ca918b7f0cf6f04336176e4b2ba7359ab44f7f9b555a7a72b7d088b5/
curl -X POST https://iad.autoscale.api.rackspacecloud.com/v1.0/execute/1/13aa6c05ca918b7f0cf6f04336176e4b2ba7359ab44f7f9b555a7a72b7d088b5/ 2> /dev/null
else
echo `date` "Autoscale load check: Not ready for scale down"
fi
Expand Down
2 changes: 1 addition & 1 deletion scale_cron_gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ mem=`sh /root/scaledown_check.sh | grep percent_memory_used | awk '{print $4}'`
if awk -v ld=$load 'BEGIN {exit !(ld < 2)}' && awk -v mem=$mem 'BEGIN {exit !(mem < 30)}'
then
echo `date` "Autoscale load check: Scaling DOWN by 1 server!"
curl -X POST https://iad.autoscale.api.rackspacecloud.com/v1.0/execute/1/13aa6c05ca918b7f0cf6f04336176e4b2ba7359ab44f7f9b555a7a72b7d088b5/
curl -X POST https://iad.autoscale.api.rackspacecloud.com/v1.0/execute/1/13aa6c05ca918b7f0cf6f04336176e4b2ba7359ab44f7f9b555a7a72b7d088b5/ 2> /dev/null
else
echo `date` "Autoscale load check: Not ready for scale down"
fi
Expand Down

0 comments on commit 102a63c

Please sign in to comment.