[ceph-users] Sharing connection between multiple io -contexts.

2015-08-04 Thread Sonal Dubey
Hi,

Before I start with my question,  following are some references -

1) I want to keep track of creating and closing ceph connections properly
so I am using singleton pattern for getting an instance of ceph.

2) following is kind of the steps-

a) creating a rados cluster
b) connecting to cluster
c) setting the IO context (pool)

and then using this object for all sorts of reads, write and updates.

Things have been fine for me as long as I was writing to one pool.
But due to design change I have to write to 2 separate pools. They both
uses the same key, so basically to access the pool all I need to change is
the io context.

Question - I decided to create the connection object and not assigning it
to pool right away, rather deciding the pool name each time you want to
read or write.

Will it add overhead on the same connection to switch between the pools ?

Or I should consider changing the design and creating 2 connection objects
for 2 pools ?

Thanks a lot for your reply in advance,
Regards
Sonal Dubey
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] client-ceph [can not connect from client][connect protocol feature mismatch]

2015-03-16 Thread Sonal Dubey
Thanks a lot Stephane and Kamil,

Your reply was really helpful. I needed a different version of ceph client
on my client machine. Initially my java application using librados was
throwing connection time out. Then I considered querying ceph from command
line (ceph --id ...), which was giving the error -



2015-03-05 13:37:16.816322 7f5191deb700 -- 10.8.25.112:0/2487 
10.138.23.241:6789/0pipe(0x12489f0 sd=3 pgs=0 cs=0 l=0).connect protocol
feature mismatch, my 1ffa  peer 42041ffa missing 4204


From the hits given in your mail i tried -

wget -q -O- '
https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc
https://mail.barracuda.com/owa/redir.aspx?C=3NyLmctq4E2pteCAiaUljUgzJNylM9JIwPBTxx3luEEtOGlWRbTgjTsFufrr9_uu3LumztxKEp0.URL=https%3a%2f%2fceph.com%2fgit%2f%3fp%3dceph.git%3ba%3dblob_plain%3bf%3dkeys%2frelease.asc'
| sudo apt-key add -
wget -q -O- '
https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/autobuild.asc
https://mail.barracuda.com/owa/redir.aspx?C=3NyLmctq4E2pteCAiaUljUgzJNylM9JIwPBTxx3luEEtOGlWRbTgjTsFufrr9_uu3LumztxKEp0.URL=https%3a%2f%2fceph.com%2fgit%2f%3fp%3dceph.git%3ba%3dblob_plain%3bf%3dkeys%2fautobuild.asc'
| sudo apt-key add -
echo deb http://ceph.com/packages/ceph-extras/debian
https://mail.barracuda.com/owa/redir.aspx?C=3NyLmctq4E2pteCAiaUljUgzJNylM9JIwPBTxx3luEEtOGlWRbTgjTsFufrr9_uu3LumztxKEp0.URL=http%3a%2f%2fceph.com%2fpackages%2fceph-extras%2fdebian
$(lsb_release
-sc) main | sudo tee /etc/apt/sources.list.d/ceph-extras.list
echo deb http://ceph.com/debian-firefly/
https://mail.barracuda.com/owa/redir.aspx?C=3NyLmctq4E2pteCAiaUljUgzJNylM9JIwPBTxx3luEEtOGlWRbTgjTsFufrr9_uu3LumztxKEp0.URL=http%3a%2f%2fceph.com%2fdebian-firefly%2f
$(lsb_release
-sc) main | sudo tee /etc/apt/sources.list.d/ceph.list
sudo apt-get install ceph-common

to verify:
ceph --id brts --keyring=/etc/ceph/ceph.client.brts.keyring health
HEALTH_OK

Thanks for the reply.

-Sonal


On Fri, Mar 6, 2015 at 5:50 AM, Stéphane DUGRAVOT 
stephane.dugra...@univ-lorraine.fr wrote:

 Hi Sonal,
 You can refer to this doc to identify your problem.
 Your error code is 4204, so

- 4000 upgrade to kernel 3.9
-  200 CEPH_FEATURE_CRUSH_TUNABLES2
- 4 CEPH_FEATURE_CRUSH_TUNABLES


-
http://ceph.com/planet/feature-set-mismatch-error-on-ceph-kernel-client/

 Stephane.

 --

 Hi,

 I am newbie for ceph, and ceph-user group. Recently I have been working on
 a ceph client. It worked on all the environments while when i tested on the
 production, it is not able to connect to ceph.

 Following are the operating system details and error. If someone has seen
 this problem before, any help is really appreciated.

 OS -

 lsb_release -a
 No LSB modules are available.
 Distributor ID: Ubuntu
 Description: Ubuntu 12.04.2 LTS
 Release: 12.04
 Codename: precise

 2015-03-05 13:37:16.816322 7f5191deb700 -- 10.8.25.112:0/2487 
 10.138.23.241:6789/0 pipe(0x12489f0 sd=3 pgs=0 cs=0 l=0).connect protocol
 feature mismatch, my 1ffa  peer 42041ffa missing 4204
 2015-03-05 13:37:17.635776 7f5191deb700 -- 10.8.25.112:0/2487 
 10.138.23.241:6789/0 pipe(0x12489f0 sd=3 pgs=0 cs=0 l=0).connect protocol
 feature mismatch, my 1ffa  peer 42041ffa missing 4204

 ___
 ceph-users mailing list
 ceph-users@lists.ceph.com
 http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


[ceph-users] client-ceph [can not connect from client][connect protocol feature mismatch]

2015-03-05 Thread Sonal Dubey
Hi,

I am newbie for ceph, and ceph-user group. Recently I have been working on
a ceph client. It worked on all the environments while when i tested on the
production, it is not able to connect to ceph.

Following are the operating system details and error. If someone has seen
this problem before, any help is really appreciated.

OS -

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.2 LTS
Release: 12.04
Codename: precise

2015-03-05 13:37:16.816322 7f5191deb700 -- 10.8.25.112:0/2487 
10.138.23.241:6789/0 pipe(0x12489f0 sd=3 pgs=0 cs=0 l=0).connect protocol
feature mismatch, my 1ffa  peer 42041ffa missing 4204
2015-03-05 13:37:17.635776 7f5191deb700 -- 10.8.25.112:0/2487 
10.138.23.241:6789/0 pipe(0x12489f0 sd=3 pgs=0 cs=0 l=0).connect protocol
feature mismatch, my 1ffa  peer 42041ffa missing 4204
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com