I’ve tested putting the configuration like bellow and works fine, see:  

rgw frontends = civetweb port=7481

root@host:~# netstat -ntpl | grep :74
tcp        0      0 0.0.0.0:7480            0.0.0.0:*               LISTEN      
25884/radosgw
tcp        0      0 0.0.0.0:7481            0.0.0.0:*               LISTEN      
25927/radosgw


Thanks a lot for your help.  

Regards.

Italo Santos
http://italosantos.com.br/


On Wednesday, June 24, 2015 at 20:38, Somnath Roy wrote:

> I am not sure if you need to specify the ports like that (within quotes)
>   
> rgw_frontends="civetweb port=7480"
>   
> Also, not sure if you want to run with the rgw enable ops log = true, this 
> could impact performance.
> You may also want to run with rgw ops log rados = false if performance is the 
> criteria.
>   
> Thanks & Regards
> Somnath
>   
>   
> From: Italo Santos [mailto:[email protected]]  
> Sent: Wednesday, June 24, 2015 4:12 PM
> To: Somnath Roy
> Cc: Robin H. Johnson; [email protected] 
> (mailto:[email protected])
> Subject: Re: [ceph-users] RadosGW - Multiple instances on same host  
>   
> Thanks, I’ll make some tests using your recommendations.
>  
>   
>  
> Also did you guys recommend a specify load balancer? I’d like to force that 
> all requests come by HTTPS
>  
>   
>  
> And, finally my ceph.conf will be like bellow, right?:
>  
>   
>  
> [client.radosgw.instance-01]
>  
> host = cloudstr0007
>  
> keyring = /etc/ceph/ceph.client.radosgw.instance-01.keyring
>  
> rgw socket path = /var/run/ceph/ceph.radosgw.instance-01.fastcgi.sock
>  
> log file = /var/log/radosgw/client.radosgw.instance-01.log
>  
> rgw dns name = instance-01.mydomain
>  
> rgw frontends = civetweb port=7480
>  
> rgw enable apis = s3, admin
>  
> rgw enable ops log = true
>  
>   
>  
> [client.radosgw.instance-02]
>  
> host = cloudstr0007
>  
> keyring = /etc/ceph/ceph.client.radosgw.public.keyring
>  
> rgw socket path = /var/run/ceph/ceph.radosgw.instance-02.fastcgi.sock
>  
> log file = /var/log/radosgw/client.radosgw.instance-02.log
>  
> rgw dns name = instance-02.mydomain
>  
> rgw frontends = civetweb port=7481
>  
> rgw enable apis = s3, admin
>  
> rgw enable ops log = true
>  
>  
>   
>  
> At.
>  
>   
>  
> Italo Santos
>  
> http://italosantos.com.br/
>  
>   
>  
>  
> On Wednesday, June 24, 2015 at 20:07, Somnath Roy wrote:
> >  
> > Precisely…
> >  
> >  
> >   
> >  
> >  
> > From: Italo Santos [mailto:[email protected]]  
> > Sent: Wednesday, June 24, 2015 4:07 PM
> > To: Robin H. Johnson
> > Cc: Somnath Roy; [email protected] 
> > (mailto:[email protected])
> > Subject: Re: [ceph-users] RadosGW - Multiple instances on same host
> >  
> >  
> >   
> >  
> >  
> > Thanks guys!  
> >  
> >  
> >  
> >   
> >  
> >  
> >  
> > Doing this I’ll need have a load balancer in front of instances (like 
> > haproxy, nginx, etc…) to to redirect requests to each instance right?
> >  
> >  
> >  
> >   
> >  
> >  
> >  
> > Regards.
> >  
> >  
> >  
> >   
> >  
> >  
> >  
> > Italo Santos
> >  
> >  
> >  
> > http://italosantos.com.br/
> >  
> >  
> >  
> >   
> >  
> >  
> >  
> > On Wednesday, June 24, 2015 at 20:01, Robin H. Johnson wrote:
> > >  
> > > Override 'rgw frontends' for each instance as well.
> > >  
> > >  
> > >  
> > > Eg:
> > >  
> > >  
> > >  
> > > rgw frontends = civetweb port=7480
> > >  
> > >  
> > >  
> > > rgw frontends = civetweb port=7481
> > >  
> > >  
> > >  
> > >   
> > >  
> > >  
> > >  
> > > The default value is:
> > >  
> > >  
> > >  
> > > rgw frontends = fastcgi, civetweb port=7480
> > >  
> > >  
> > >  
> > >   
> > >  
> > >  
> > >  
> > > On Wed, Jun 24, 2015 at 07:52:36PM -0300, Italo Santos wrote:
> > >  
> > >  
> > > >  
> > > > Hello Somnath,  
> > > >  
> > > >  
> > > >  
> > > >   
> > > >  
> > > >  
> > > >  
> > > > I’ve create the files, one for each instance but when I restart the 
> > > > radosgw I see the message bellow on radosgw logs:
> > > >  
> > > >  
> > > >  
> > > >   
> > > >  
> > > >  
> > > >  
> > > > 2015-06-24 18:46:47.567711 7f30190e3780 0 civetweb: 0xaed360: 
> > > > set_ports_option: cannot bind to 7480: 98 (Address already in use)
> > > >  
> > > >  
> > > >  
> > > >   
> > > >  
> > > >  
> > > >  
> > > > Could you show how did you do that with civetweb?  
> > > >  
> > > >  
> > > >  
> > > >   
> > > >  
> > > >  
> > > >  
> > > > Regards.
> > > >  
> > > >  
> > > >  
> > > >   
> > > >  
> > > >  
> > > >  
> > > > Italo Santos
> > > >  
> > > >  
> > > >  
> > > > http://italosantos.com.br/
> > > >  
> > > >  
> > > >  
> > > >   
> > > >  
> > > >  
> > > >  
> > > >   
> > > >  
> > > >  
> > > >  
> > > > On Wednesday, June 24, 2015 at 18:26, Somnath Roy wrote:
> > > >  
> > > >  
> > > >  
> > > >   
> > > >  
> > > >  
> > > > >  
> > > > > Hi Italo,
> > > > >  
> > > > >  
> > > > >  
> > > > > What we did was with civetweb and each RGW instances will be running 
> > > > > with its own civetweb instances I guess.
> > > > >  
> > > > >  
> > > > >  
> > > > > Now, it seems you are trying to run multiple fastcgi external servers 
> > > > > with single apache instance. This should work but I never tried and I 
> > > > > am not sure how apache load balanced between those.
> > > > >  
> > > > >  
> > > > >  
> > > > > I think along with the different fcgi file, you need to create 
> > > > > separate rgw conf file within /etc/apache2/sites-available .  
> > > > >  
> > > > >  
> > > > >  
> > > > > Thanks & Regards
> > > > >  
> > > > >  
> > > > >  
> > > > > Somnath  
> > > > >  
> > > > >  
> > > > >  
> > > > > From: Italo Santos [mailto:[email protected]]  
> > > > >  
> > > > >  
> > > > >  
> > > > > Sent: Wednesday, June 24, 2015 1:46 PM
> > > > >  
> > > > >  
> > > > >  
> > > > > To: Somnath Roy
> > > > >  
> > > > >  
> > > > >  
> > > > > Cc: [email protected] (mailto:[email protected]) 
> > > > > (mailto:[email protected])
> > > > >  
> > > > >  
> > > > >  
> > > > > Subject: Re: [ceph-users] RadosGW - Multiple instances on same host  
> > > > >  
> > > > >  
> > > > >  
> > > > > Thanks Somnath,  
> > > > >  
> > > > >  
> > > > >  
> > > > > In this case I’ll need create a ceph.conf like bellow Also, I’ll need 
> > > > > to create two different .fcgi files on /var/www/ one for each 
> > > > > instance, as same with the apache config, right?
> > > > >  
> > > > >  
> > > > >  
> > > > > [client.radosgw.instance-01]
> > > > >  
> > > > >  
> > > > >  
> > > > > host = hostname
> > > > >  
> > > > >  
> > > > >  
> > > > > keyring = /etc/ceph/ceph.client.radosgw.instance-01.keyring
> > > > >  
> > > > >  
> > > > >  
> > > > > rgw socket path = /var/run/ceph/ceph.radosgw.instance-01.fastcgi.sock
> > > > >  
> > > > >  
> > > > >  
> > > > > log file = /var/log/radosgw/client.radosgw.log
> > > > >  
> > > > >  
> > > > >  
> > > > > rgw dns name = instance-01.mydomain
> > > > >  
> > > > >  
> > > > >  
> > > > > rgw enable apis = s3, admin
> > > > >  
> > > > >  
> > > > >  
> > > > > rgw enable ops log = true
> > > > >  
> > > > >  
> > > > >  
> > > > > [client.radosgw.instance-02]
> > > > >  
> > > > >  
> > > > >  
> > > > > host = hostname
> > > > >  
> > > > >  
> > > > >  
> > > > > keyring = /etc/ceph/ceph.client.radosgw.instance-02.keyring
> > > > >  
> > > > >  
> > > > >  
> > > > > rgw socket path = /var/run/ceph/ceph.radosgw.instance-02.fastcgi.sock
> > > > >  
> > > > >  
> > > > >  
> > > > > log file = /var/log/radosgw/client.radosgw.log
> > > > >  
> > > > >  
> > > > >  
> > > > > rgw dns name = instance-02.mydomain
> > > > >  
> > > > >  
> > > > >  
> > > > > rgw enable apis = s3, admin
> > > > >  
> > > > >  
> > > > >  
> > > > > rgw enable ops log = true
> > > > >  
> > > > >  
> > > > >  
> > > > > At.
> > > > >  
> > > > >  
> > > > >  
> > > > > Italo Santos
> > > > >  
> > > > >  
> > > > >  
> > > > > http://italosantos.com.br/
> > > > >  
> > > > >  
> > > > >  
> > > > > On Wednesday, June 24, 2015 at 17:33, Somnath Roy wrote:
> > > > >  
> > > > >  
> > > > > >  
> > > > > > Yes, it is possible. Each RGW instance is very cpu intensive, make 
> > > > > > sure you don’t run out of cpu though. Also, each one will be having 
> > > > > > its own webserver in front so you need a LB in front.
> > > > > >  
> > > > > >  
> > > > > >  
> > > > > > Thanks & Regards
> > > > > >  
> > > > > >  
> > > > > >  
> > > > > > Somnath
> > > > > >  
> > > > > >  
> > > > > >  
> > > > > > From: ceph-users [mailto:[email protected]] On 
> > > > > > Behalf Of Italo Santos
> > > > > >  
> > > > > >  
> > > > > >  
> > > > > > Sent: Wednesday, June 24, 2015 1:05 PM
> > > > > >  
> > > > > >  
> > > > > >  
> > > > > > To: [email protected] (mailto:[email protected]) 
> > > > > > (mailto:[email protected])
> > > > > >  
> > > > > >  
> > > > > >  
> > > > > > Subject: [ceph-users] RadosGW - Multiple instances on same host
> > > > > >  
> > > > > >  
> > > > > >  
> > > > > > Hello everyone,  
> > > > > >  
> > > > > >  
> > > > > >  
> > > > > > I’d like to know if someone knows if its possible run multiples 
> > > > > > radosgw instances on the same host? What I’m trying to do is have 
> > > > > > two diferente radosgw instances responding by different rgw dns...
> > > > > >  
> > > > > >  
> > > > > >  
> > > > > > Regards.
> > > > > >  
> > > > > >  
> > > > > >  
> > > > > > Italo Santos
> > > > > >  
> > > > > >  
> > > > > >  
> > > > > > http://italosantos.com.br/
> > > > > >  
> > > > > >  
> > > > > >  
> > > > > > PLEASE NOTE: The information contained in this electronic mail 
> > > > > > message is intended only for the use of the designated recipient(s) 
> > > > > > named above. If the reader of this message is not the intended 
> > > > > > recipient, you are hereby notified that you have received this 
> > > > > > message in error and that any review, dissemination, distribution, 
> > > > > > or copying of this message is strictly prohibited. If you have 
> > > > > > received this communication in error, please notify the sender by 
> > > > > > telephone or e-mail (as shown above) immediately and destroy any 
> > > > > > and all copies of this message in your possession (whether hard 
> > > > > > copies or electronically stored copies).  
> > > > > >  
> > > > > >  
> > > > > >  
> > > > >  
> > > > >  
> > > >  
> > > >  
> > >  
> > >  
> > >   
> > >  
> > >  
> > > >  
> > > > _______________________________________________
> > > >  
> > > >  
> > > >  
> > > > ceph-users mailing list
> > > >  
> > > >  
> > > >  
> > > > [email protected] (mailto:[email protected])
> > > >  
> > > >  
> > > >  
> > > > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
> > > >  
> > > >  
> > > >  
> > >  
> > >  
> > >   
> > >  
> > >  
> > >  
> > >   
> > >  
> > >  
> > >  
> > > --  
> > >  
> > >  
> > >  
> > > Robin Hugh Johnson
> > >  
> > >  
> > >  
> > > Gentoo Linux: Developer, Infrastructure Lead
> > >  
> > >  
> > >  
> > > E-Mail : [email protected] (mailto:[email protected])
> > >  
> > >  
> > >  
> > > GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
> > >  
> > >  
> > >  
> > >  
> >  
> >  
> >   
> >  
> >  
> >  
> >  
> >  
>  
>   
>  
>  
>  
>  


_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to