Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Membase | Membase Server 1.6.x

vbucket aware ruby client

6 replies [Last post]
  • Login or register to post comments
Wed, 01/12/2011 - 13:00
dallasmarlow
Offline
Joined: 01/12/2011
Groups: None

is there a vbucket aware ruby client?

Top
  • Login or register to post comments
Wed, 01/12/2011 - 14:22
perry
Offline
Joined: 10/11/2010
Groups:

 Dallas, at the moment there is not.  We are in the process of planning out the various clients that we will begin work on and you can certainly cast your vote for Ruby! (http://forums.membase.org/thread/membase-client-library-survey).  In general, you should be able to achieve all of the benefits and performance of Membase through a combination of any standard memcache client and a client-side Moxi process.  Ruby (like PHP) is particularly well suited to using an external proxy that can maintain persistent connections to the backend servers as well as pool connections from many short-lived client processes which do not have shared memory between them.

 

Let me know if you need any help getting that setup in the interim.  

 

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

Top
  • Login or register to post comments
Wed, 01/12/2011 - 14:35
dallasmarlow
Offline
Joined: 01/12/2011
Groups: None

after setting up client side moxi's we saw thousands of client connect errors from our rails app. the process was monitored by monit and nagios, and never showed unavailability (but we had to stop using the local moxi instances due the large number of errors). i tried raising the concurrency, the number of threads and also the number of downstream connections (none of these things helped in our case). most of the time when we saw the errors, they were grouped together (20-40 at a time). once we switched to using the membase nodes directly, all connect errors stopped (although then we started seeing timeouts due to slow responses from membase likely due the extra network hops incurred from membase nodes proxying requests to each other).

Top
  • Login or register to post comments
Wed, 01/12/2011 - 15:15
perry
Offline
Joined: 10/11/2010
Groups:

 I'm curious, did you have Moxi setup to go through a load balancer or was it connected directly to the Membase servers?

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

Top
  • Login or register to post comments
Wed, 01/12/2011 - 15:22
dallasmarlow
Offline
Joined: 01/12/2011
Groups: None

 it was setup to connect directly to the membase nodes with the following options

 

-d -P /opt/moxi/sessions.pid -t 8 -Z port_listen=16000,downstream_max=64

Top
  • Login or register to post comments
Wed, 01/12/2011 - 18:33
steve
Offline
Joined: 03/15/2010
Groups: None

Hi,

There might be some copy-&-paste clipping in your post?  client-side moxi is usually started with a REST URL to a membase server so that moxi can dynamically learn of the membase cluster configuration.  For example...

  ./moxi -d -P /opt/moxi/sessions.pid -t 8 -Z port_listen=16000,downstream_max=64 http://HOST:8091/pools/default/bucketsStreaming/default

Note the REST URL is the last parameter.

Also, to help diagnose this, instead of "-d", using "-vvv" (very very verbose) should be helpful.

Cheers,

Steve

 

Top
  • Login or register to post comments
Thu, 01/13/2011 - 18:05
perry
Offline
Joined: 10/11/2010
Groups:

 Dallas, if you can set this back up and reproduce the connect issues, it would be useful to take a look at "stats proxy" from Moxi.  You can simply telnet ot the port that it is listening on and type "stats proxy" and send over the output.

 

Thanks

 

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker