[one-users] Load balance for sunstone

Daniel Molina dmolina at opennebula.org
Thu Jan 17 02:12:28 PST 2013


Hi,

On 16 January 2013 17:00, Zeeshan Ali Shah <zashah at pdc.kth.se> wrote:

> sorry for late reply.
> I was trying different settings.
>
> when i use passenger start and use nginx as proxy (plain) not via
> passenger module it works.
>
> but when i use passenger as module in apache install via using
> passenger-install module
>
> it shows me this error
>
> i have config.ru as
> $: << '.'
> require 'sunstone-server'
>
> run Sinatra::Application
>
> any hint ?
>
> Zee
>
>  Error message: cannot load such file -- CloudAuth Exception class:LoadErrorApplication root:
> /srv/cloud/one/one38/lib/sunstone Backtrace: # FileLine Location0/srv/cloud/one/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb
> 36 in `require'1/srv/cloud/one/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb
> 36 in `require'
>
>
I think the problem is that ONE_LOCATION is not defined for the user who is
starting the server.

Cheers



>
> On W3-Jan 14, 2013, at 6:27 PM, Daniel Molina wrote:
>
> Hi,
>
> On 10 January 2013 11:53, Zeeshan Ali Shah <zashah at pdc.kth.se> wrote:
>
> Thanks Hector,
>
>
> We are running thin  . here is gem list
>
>
> -- any hint to run it with passenger ? right now i start it with
> bin/sunstone-server restart command.
>
>
> apache+passenger module is another option for this beside apache+passenger
>  do we have have to change some parts of sunstone to run with passenger ?
>
>
> Some changes are required in sunstone to make it work with Passenger.
> Actually, these changes will be included in OpenNebula 4.0:
>
> http://dev.opennebula.org/issues/1370
>
> Cheers
>
>
>
>
> gem list
>
>
> *** LOCAL GEMS ***
>
>
> bundler (1.2.2)
>
> daemons (1.1.9)
>
> eventmachine (1.0.0)
>
> json (1.7.5)
>
> rack (1.4.1)
>
> rack-protection (1.2.0)
>
> rake (10.0.2)
>
> rubygems-bundler (1.1.0)
>
> rvm (1.11.3.5)
>
> sequel (3.41.0)
>
> sinatra (1.3.3)
>
> thin (1.5.0)
>
> tilt (1.3.3)
>
>
>
> Zeeshan
>
>
> On W2-Jan 9, 2013, at 6:54 PM, Hector Sanjuan wrote:
>
>
> If your sunstone performs so bad I doubt that is something you can solve
> by load balancing.
>
>
> Is it running with Webbrick or with thin (i.e. is the thin gem
> installed?)? I would check gem versions in general... make sure you are
> running the latest etc. thin can launch several processes too (-s) so you
> can try using it along with nginx.
>
>
> You can also try proxying with Apache+passenger which will also take care
> of spanning several processes...
>
>
> Hector
>
>
> On Wed, 09 Jan 2013 11:13:49 +0100, Zeeshan Ali Shah <zashah at pdc.kth.se>
> wrote:
>
>
> HI,
>
> We are running sunstone as proxy with nginx . during testing with only 2
> users the server hanged . nginx was fine but sunstone went belly up (very
> slow with no error in debug)
>
>
> 1. any way we can increase number of processes for sunstone ?
>
> 2. or running sunstone with different ports on same system and load
> balance them from nginx ?
>
>
> any hint ?
>
>
> Regards
>
>
> Zeeshan
>
> _______________________________________________
>
> Users mailing list
>
> Users at lists.opennebula.org
>
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
>
> --
>
> Hector Sanjuan
>
> @hecsanjuan
>
> _______________________________________________
>
> Users mailing list
>
> Users at lists.opennebula.org
>
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
> _______________________________________________
>
> Users mailing list
>
> Users at lists.opennebula.org
>
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
> --
> Daniel Molina
> Project Engineer
> OpenNebula - The Open Source Solution for Data Center Virtualization
> www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 
Daniel Molina
Project Engineer
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130117/8b03c905/attachment-0002.htm>


More information about the Users mailing list