Hi Nick That’s a great hint So I can just patch apache to run on a different port and that should be fine ?
Cheers Srini From: Nick Toursky Sent: Wednesday, February 29, 2012 4:25 PM To: [email protected] Subject: Re: Adding a new behaviour Srini, This approach looks fine, with just one remark. Servers will not become 'Running' if Scalarizr will not be able to start Apache server upon boot. So I'd recommend to patch Apache configuration so it won't interfere with jboss server and let Apache start. Regards, Nick On Wed, Feb 29, 2012 at 11:53, Srinivasan Subramanian <[email protected]> wrote: Hi Nick Igor recommended not to create a new behaviour but to use the standard roles and customize them to what I needed. I think the general idea in the page I referred to is correct. Let me recap what I want and how I propose to do it: 1. I need a new App Role that has JBoss in it (No Apache). Also the JBoss App roles will be the ones that are behind the Load Balancer. 2. I was thinking of taking the Apache role and remove components not needed and add JBoss (also on port 8080) to this. I will create a new snapshot and new App role from this image. Hopefully this will allow Scalr to identify it as an App role and update the nginx configuration as required. Please let me know if this approach is fine or I need to do it differently. Regards Srini From: Nick Toursky Sent: Wednesday, February 29, 2012 3:17 PM To: [email protected] Subject: Re: Adding a new behaviour Hi Srini, Beware that tutorial you've mentioned is outdated and supposed to work only with ami-scripts based roles. With Scalarizr, you should follow this howto: http://wiki.scalr.net/Reference_Guide/Roles Regards, Nick On Wed, Feb 29, 2012 at 10:34, Srinivasan Subramanian <[email protected]> wrote: Hi Igor I looked at this link: http://wiki.scalr.net/Tutorials/Using_Varnish_with_Scalr I plan to use the same mechanism to build my own App Role and will work with that. Hope that’s OK Cheers Srini From: Igor Savchenko Sent: Tuesday, February 28, 2012 7:28 PM To: [email protected] Subject: Re: Adding a new behaviour Hi Srini, Currently there is no easy way to add new behavior. Behavior is a complex item that consists of different pars on scalr + scalarizr handler. There is no any guide about how to add custom behavior because in each case (for each software) this process can be completely different. If you need own behavior I would advise you to use base role + role parameters + our scripting engine. Regards, Igor On 28 February 2012 15:17, Srinivasan Subramanian <[email protected]> wrote: 1. I followed the wiki on new Behavior to the letter Installed the python plugin with distutils, edited config.ini and added the newbahavior.ini also 2. Started scalarizr agent and it started successfully. The log shows no errors. 3. I have also edited the types/enum.ROLE_BEHAVIORS.php and added a constant for the new behavior. 1. When I click on Role Builder – I do not see the new behavior I have added. 2. I created a snapshot of the custom behavior server and created a new role. I can see the new role in the roles list but when I click on edit role, the behavior is all greyed out and is set to base (the original role) and I cannot change it. Can someone help me in getting the new behavior visible and image assigned to it? Which step am I going wrong? Thanks Srini From: Srinivasan Subramanian Sent: Tuesday, February 28, 2012 3:29 PM To: [email protected] Subject: Adding a new behaviour I want to add a couple of new behaviors and have a couple of doubts regarding that. I followed this excellent guide: http://wiki.scalr.net/Reference_Guide/Roles I now have my new custom role defined in the php enum. Questions: Do I start with a base install image, install the new plugin on that and then create a new role from that server instance? OR Do I start with Role builder, base role and then install the new plugin? End result I want a new APP role that I can access in the farm. Thanks for the help Srini -- You received this message because you are subscribed to the Google Groups "scalr-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to mailto:scalr-discuss%[email protected]. For more options, visit this group at http://groups.google.com/group/scalr-discuss?hl=en. -- You received this message because you are subscribed to the Google Groups "scalr-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to mailto:scalr-discuss%[email protected]. For more options, visit this group at http://groups.google.com/group/scalr-discuss?hl=en. -- You received this message because you are subscribed to the Google Groups "scalr-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to mailto:scalr-discuss%[email protected]. For more options, visit this group at http://groups.google.com/group/scalr-discuss?hl=en. -- You received this message because you are subscribed to the Google Groups "scalr-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to mailto:scalr-discuss%[email protected]. For more options, visit this group at http://groups.google.com/group/scalr-discuss?hl=en. -- You received this message because you are subscribed to the Google Groups "scalr-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to mailto:scalr-discuss%[email protected]. For more options, visit this group at http://groups.google.com/group/scalr-discuss?hl=en. -- You received this message because you are subscribed to the Google Groups "scalr-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/scalr-discuss?hl=en. -- You received this message because you are subscribed to the Google Groups "scalr-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/scalr-discuss?hl=en.
<<wlEmoticon-smile[1].png>>
<<wlEmoticon-smile[1].png>>
