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

Resizing server in development?

13 replies [Last post]
  • Login or register to post comments
Mon, 06/25/2012 - 12:35
kendallb
Offline
Joined: 02/27/2012
Groups: None

I am playing around with Couchbase and have installed the Mac version for development purposes (1.8.0). I initially set up the cluster to use 2G of memory for the server on my dev box just to play with it, but now it is set up I can't see any way to edit the server settings and change how much memory is allocated to it? It seems like I would need to start a new server on another machine and add it to the cluster, so I could take the original server off-line to resize it?

Also, it is unclear from the documentation if you can have servers with different memory sizes in the same cluster. Say I start a cluster and give the first server 2G, but then the second is going to have 3G, what happens? Will it not join to the cluster? If you need to give more memory to the servers in a cluster, what would be the procedure to do so?

Top
  • Login or register to post comments
Mon, 06/25/2012 - 16:42
mikew
Offline
Joined: 03/14/2011
Groups:

1. It is possible to change the memory quota for a bucket during runtime. Go to Manage -> Data Buckets. Then click the bucket name you want to change the memory quota for. You will see information about the bucket drop down. In the drop down area there is an edit button. Click that and a menu will pop up and you will see a place to edit the bucket quota.

2. Currently, all servers must have the same amount of memory per bucket. In your example you would only be able to utilize 2GB from each server for a total of 4GB in the cluster. If you wanted to upgrade a server with more memory one thing people typically do in production clusters is add a third node and to the cluster and then remove the node you want to upgrade. You can then add that server back and remove the temporary node.

In the future we plan on removing the requirement that all buckets have the same amount of memory on each server.

Top
  • Login or register to post comments
Mon, 06/25/2012 - 16:51
kendallb
Offline
Joined: 02/27/2012
Groups: None

Actually this was not about the bucket size, but the total server size. I can't find any way to change the total amount of memory that is allocated to the server once it is up and running, and since I only have one server (it is my dev box after all :) ), I cannot cluster in a new one so I can resize it.

If I shut the server down, is there a config file I can edit somewhere that has this information in it? Or a way to delete the config so that it will let me do the entire dev server setup all over again from the management console?

Finally I think I understand now that the servers themselves can have varying memory sizes, but once a bucket is in a server it must be the same size across all servers where it exists? That does make sense to me actually.

Top
  • Login or register to post comments
Tue, 06/26/2012 - 11:09
mikew
Offline
Joined: 03/14/2011
Groups:

You can do this through the Couchbase cli which somes as part of your Couchbase installation.

./couchbase-cli cluster-init -u Administrator -p asdasd --cluster=127.0.0.1:9000 --cluster-init-ramsize=8096

Top
  • Login or register to post comments
Sun, 07/01/2012 - 12:53
kendallb
Offline
Joined: 02/27/2012
Groups: None

Great! Except I cannot get the couchbase-cli program to run on my box. I get the following errors:

/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/couchbase-cli: line 12: /Users/kendallb/..//lib/python/Couchbase: No such file or directory
/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/couchbase-cli: line 12: exec: /Users/kendallb/..//lib/python/Couchbase: cannot execute: No such file or directory

Seems like I need to somehow tell the program where to find these files? I assume if I run the program in place, it will work, but I want to add it onto my path so it will run from anywhere on the command line?

Top
  • Login or register to post comments
Sun, 07/01/2012 - 12:55
kendallb
Offline
Joined: 02/27/2012
Groups: None

And trying to run it from that directory also fails:

/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin>couchbase-cli server-list/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/couchbase-cli: line 12: /Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/..//lib/python/Couchbase: is a directory
/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/couchbase-cli: line 12: exec: /Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/..//lib/python/Couchbase: cannot execute: Undefined error: 0

Top
  • Login or register to post comments
Sun, 07/01/2012 - 13:02
kendallb
Offline
Joined: 02/27/2012
Groups: None

Wow. Looks like every single command line program in the bin directory is broken on Mac OS, as the scripts are just plain wrong! Here is the one for the couchbase-cli program:

#! /bin/sh
prefix=../
exec_prefix=${prefix}
root=${exec_prefix}/lib/python

if test -z "${PYTHONPATH}"; then
PYTHONPATH=$root
else
PYTHONPATH=$root:${PYTHONPATH}
fi
export PYTHONPATH
exec $root/`basename $0` "$@"

There is no way that script is going to work!! To get this working for now I have put the ../lib/python/couchbase directory onto my path and the scripts in there appear to run, but someone really needs to fix all the scripts in the bin directory for MacOS as I have looked over most of them and they are all just as bad as this one (some are worse)....

Top
  • Login or register to post comments
Sun, 07/01/2012 - 13:19
kendallb
Offline
Joined: 02/27/2012
Groups: None

BTW, the default port is not 9000 but rather 8091. But the port can be left out if you never changed it from the default (took me a while to figure that one out).

Top
  • Login or register to post comments
Sun, 07/01/2012 - 17:33
mikew
Offline
Joined: 03/14/2011
Groups:

We have a bug filed for the incorrect path issue and I just promoted the issue to blocker so it should be fixed soon. Also, where did you see a port 9000?

Top
  • Login or register to post comments
Sun, 07/01/2012 - 17:40
kendallb
Offline
Joined: 02/27/2012
Groups: None

mikew wrote:
You can do this through the Couchbase cli which somes as part of your Couchbase installation.

./couchbase-cli cluster-init -u Administrator -p asdasd --cluster=127.0.0.1:9000 --cluster-init-ramsize=8096

That is where I got port 9000 from :) Probably just a typo ...

Top
  • Login or register to post comments
Sun, 07/01/2012 - 18:07
mikew
Offline
Joined: 03/14/2011
Groups:

Sorry about that. For development we use port 9000 and I wanted to test the command to make sure that it worked before I passed it to you. The correct port is 8091 as you mentioned.

Top
  • Login or register to post comments
Wed, 07/04/2012 - 14:56
kendallb
Offline
Joined: 02/27/2012
Groups: None

mikew wrote:
We have a bug filed for the incorrect path issue and I just promoted the issue to blocker so it should be fixed soon. Also, where did you see a port 9000?

I see 1.8.1 is now out for other platforms, but there is no 1.8.1 build or Mac OS. Will there be an update for Mac OS to 1.8.1 (hopefully with the script fixes included)?

Top
  • Login or register to post comments
Thu, 07/05/2012 - 13:22
mikew
Offline
Joined: 03/14/2011
Groups:

We released Couchbase 1.8.1 enterprise only. The community version should be released in a few weeks and this release will include an OSX version. I have been told that most of the scripts (the most used ones) in the new OSX version have been fixed.

Top
  • Login or register to post comments
Thu, 07/05/2012 - 14:54
kendallb
Offline
Joined: 02/27/2012
Groups: None

Ok thanks! I look forward to the fixes.

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