Custom scaling algorithms

50 views
Skip to first unread message

Srinivasan Subramanian

unread,
Feb 10, 2012, 11:55:21 AM2/10/12
to scalr-...@googlegroups.com
given our webapp is based on Jboss I am thinking of setting up custom scaling conditions based on metrics like JVM memory demand etc.

Any pointers to how this could be achieved?

One idea is to use zabix to monitor? How would I use those metrics from scalr? Iam a little lost here. Any help appreciated.

Thanks
Srini
Sent from my BlackBerry® smartphone

Surat Singh Bhati

unread,
Feb 10, 2012, 12:58:38 PM2/10/12
to scalr-...@googlegroups.com
Srini,

Just in case you don't want to change the code, workaround is to use URLResponse time scaling option. You can write custom script on server, that can change the URL response time based on whatever criteria you want to check. 

-Surat 



--
You received this message because you are subscribed to the Google Groups "scalr-discuss" group.
To post to this group, send email to scalr-...@googlegroups.com.
To unsubscribe from this group, send email to scalr-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scalr-discuss?hl=en.


Sebastian Stadil

unread,
Feb 10, 2012, 1:46:21 PM2/10/12
to scalr-...@googlegroups.com
Write a script that fetches this information from Jboss and outputs an integer, then create a custom scaling metric for it. Set the path to that script in the custom metric, choose the 'execute' option (instead of 'read'). Then you can set scaling thresholds for it.

Val

unread,
Apr 24, 2012, 6:15:23 PM4/24/12
to scalr-...@googlegroups.com, srinivasan....@gmail.com
I am posting to this thread because my question is still on the topic of Custom Scaling Algorithms.

I wrote a script that fetches the number of claimed slots from my batch queues and placed it on my worker nodes in the farm.  I then wrote a "File-Execute" custom scaling metric and gave it the path to my script on the worker nodes.  When the scaling cron runs it returns zero for my custom metric. I have confirmed that the script is not run on the worker nodes. Am I doing this correctly? If so, could it be a configuration problem with my scalr installation?  

Any clues would be most appreciated.

-Val

Robin Piedeleu

unread,
May 1, 2012, 1:05:14 PM5/1/12
to scalr-...@googlegroups.com, srinivasan....@gmail.com
Hello Val,

Sorry it took so long to get back to you. What version of the Scalr agent (scalarizr) are you running? There was an issue that was fixed a few weeks ago.

Regards,

Robin

Val

unread,
May 1, 2012, 11:24:06 PM5/1/12
to scalr-...@googlegroups.com, srinivasan....@gmail.com
Robin,
I have the following installed on Centos 5.7

scalarizr-base.noarch                                           0.7.220-1.el5                                     installed
scalarizr-ec2.noarch                                            0.7.220-1.el5                                     installed

Igor Savchenko

unread,
May 2, 2012, 12:55:40 AM5/2/12
to scalr-...@googlegroups.com
And custom scaling metrics still doesn't work?

Regards,
Igor
> --
> You received this message because you are subscribed to the Google Groups
> "scalr-discuss" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/scalr-discuss/-/9A8n6D0kaoIJ.

Val

unread,
May 2, 2012, 2:06:41 AM5/2/12
to scalr-...@googlegroups.com, srinivasan....@gmail.com


On Friday, February 10, 2012 8:55:21 AM UTC-8, Srini wrote:

Val

unread,
May 2, 2012, 7:16:29 PM5/2/12
to scalr-...@googlegroups.com
I finally got custom scaling to work.  Here is what I needed to do:

  1. Restart the scalarizr after I updated it
  2. Set the Client account to isactive =1.  I did this manually in the mysqldb
I also found that every time I modified my custom scaling metric script on the nodes that the scalarizr needed to be restarted for the changes to be reflected. Another sticking point was that the executed metric script could not have a new line at the end of the file.

Sebastian Stadil

unread,
May 2, 2012, 7:27:38 PM5/2/12
to scalr-...@googlegroups.com
Haha, yes. Client isactive is how we track paying customers in the hosted service. We should probably change the default for new accounts created to be active.

We're adding this to the documentation.

To view this discussion on the web visit https://groups.google.com/d/msg/scalr-discuss/-/qlD2RlE9AvoJ.

To post to this group, send email to scalr-...@googlegroups.com.
To unsubscribe from this group, send email to scalr-discus...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/scalr-discuss?hl=en.



--


Follow us: Twitter - Facebook - Blog

Srinivasan S

unread,
May 2, 2012, 9:46:43 PM5/2/12
to scalr-...@googlegroups.com
Hey Val

Any chance you can document the steps on the wiki with a sample scaling script? Will be a big help.

Cheers
Srini
Sent on my BlackBerry® from Vodafone

From: Val <vche...@lbl.gov>
Date: Wed, 2 May 2012 16:16:29 -0700 (PDT)
Subject: Re: Custom scaling algorithms
To view this discussion on the web visit https://groups.google.com/d/msg/scalr-discuss/-/qlD2RlE9AvoJ.

To post to this group, send email to scalr-...@googlegroups.com.
To unsubscribe from this group, send email to scalr-discus...@googlegroups.com.

Val

unread,
May 3, 2012, 11:13:00 PM5/3/12
to scalr-...@googlegroups.com, srinivasan....@gmail.com
Absolutely!  


On Wednesday, May 2, 2012 6:46:43 PM UTC-7, Srini wrote:
Hey Val

Any chance you can document the steps on the wiki with a sample scaling script? Will be a big help.

Cheers
Srini
Sent on my BlackBerry® from Vodafone

From: Val <vche...@lbl.gov>
Date: Wed, 2 May 2012 16:16:29 -0700 (PDT)

Val

unread,
May 14, 2012, 5:36:38 PM5/14/12
to scalr-...@googlegroups.com
I have discovered what I think to be a bug with the "File-execute" custom scaling metric.  The file is executed once and returns the correct value. However, the subsequent times the cron job is run it still returns the original value no matter if that value has indeed changed.  The only way to force the correct value to be return is to restart the scalarizr on all the nodes with the scaling metric.  What am I missing?

-Val

Sebastian Stadil

unread,
May 14, 2012, 5:39:38 PM5/14/12
to scalr-...@googlegroups.com
Sounds like a bug. Igor?

To view this discussion on the web visit https://groups.google.com/d/msg/scalr-discuss/-/YOQQMigHz2EJ.

To post to this group, send email to scalr-...@googlegroups.com.
To unsubscribe from this group, send email to scalr-discus...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/scalr-discuss?hl=en.

Igor Savchenko

unread,
May 14, 2012, 11:44:23 PM5/14/12
to scalr-...@googlegroups.com
That was fixed on scalr.net and will be available on OS version within the next release.

Regards,
Igor

Val

unread,
May 15, 2012, 1:24:52 PM5/15/12
to scalr-...@googlegroups.com
What is the time frame for the next release? This is a key feature for us.

Sebastian Stadil

unread,
May 15, 2012, 2:33:57 PM5/15/12
to scalr-...@googlegroups.com
As soon as we finish stabilizing some features, the next stable build will be released. I'm thinking about a week.

To view this discussion on the web visit https://groups.google.com/d/msg/scalr-discuss/-/S_-2O3rOFnMJ.

To post to this group, send email to scalr-...@googlegroups.com.
To unsubscribe from this group, send email to scalr-discus...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/scalr-discuss?hl=en.

Val

unread,
May 25, 2012, 3:15:09 PM5/25/12
to scalr-...@googlegroups.com
I have confirmed that this is a but with both File-Execute and File-Read
Reply all
Reply to author
Forward
0 new messages