[one-users] Load balance for sunstone

Zeeshan Ali Shah zashah at pdc.kth.se
Thu Jan 17 05:24:51 PST 2013


slowly moving forward.

now in log we see
== Sinatra/1.3.3 has taken the stage on 9869 for production with backup from Thin

but on page does not appear browser keep loading... 

i used the following .. (any hint)

in sunstone: 
:host=>"127.0.0.1",
 :port=>9869,

in apache:
<VirtualHost *:8443>
      ServerName cloud.pdc.kth.se
      # !!! Be sure to point DocumentRoot to 'public'!
      DocumentRoot /srv/cloud/one/one38/lib/sunstone/public    
 SSLEngine on
    SSLProtocol all
    SSLCertificateFile /etc/nginx/server.crt
    SSLCertificateKeyFile /etc/nginx/server.key
      <Directory /srv/cloud/one/one38/lib/sunstone/public>
         # This relaxes Apache security settings.
         AllowOverride all
         # MultiViews must be turned off.
         Options -MultiViews
      </Directory>
   </VirtualHost>

BR

Zeeshan


On W3-Jan 17, 2013, at 12:33 PM, Daniel Molina wrote:

> 
> 
> On 17 January 2013 12:15, Zeeshan Ali Shah <zashah at pdc.kth.se> wrote:
> sorry that log is old.. 
> 
> on nginx log it mentioned that passenger is up.. 
> 
> Q:  Do i still need to use proxy traffic from nginx to sunstone ?  or it is managed by module ?
> 
> 
> If you are running nginx+passenger you do not have to use the proxy mode.
> 
> Cheers
>  
> 
> 
> 
> 
> Zeeshan
> 
> On W3-Jan 17, 2013, at 12:04 PM, Zeeshan Ali Shah wrote:
> 
>> added as export ONE_LOCATION.
>> 
>> it seems that passenger did spawn . but getting this now in passenger.log , browser stuck..
>> 
>> >> Listening on 127.0.0.1:9869, CTRL+C to stop
>> 2013/01/14 21:54:32 [error] 13072#0: *4 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 127.0.0.1, server: _, request: "HEAD / HTTP/1.1", upstream: "passenger:unix:/passenger_helper_server:", host: "0.0.0.0"
>> [ pid=1327 thr=139718631917344 file=ext/common/Watchdog.cpp:961 time=2013-01-16 16:55:27.481 ]: Some Phusion Passenger agent processes did not exit in time, forcefully shutting down all.
>> 
>> 
>> 
>> Zee
>> On W3-Jan 17, 2013, at 11:12 AM, Daniel Molina wrote:
>> 
>>> 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:
>>> LoadError
>>> Application root:
>>> /srv/cloud/one/one38/lib/sunstone
>>> Backtrace:
>>> #	 File	Line	 Location
>>> 0	 /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
>> 
> 
> 
> _______________________________________________
> 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/0ec6be0a/attachment-0002.htm>


More information about the Users mailing list