best way to update config of a running voldemort server

24 views
Skip to first unread message

Dallas Marlow

unread,
Jun 29, 2015, 12:53:49 PM6/29/15
to project-...@googlegroups.com
I apologize if this is documented somewhere, but what would be the best way to update the cluster.xml value for a running voldemort server (embedded or standalone)?

Arunachalam

unread,
Jun 29, 2015, 1:08:05 PM6/29/15
to project-...@googlegroups.com
Look at the following shell script
https://github.com/voldemort/voldemort/blob/master/bin/vadmin.sh

[athirupa@athirupa-ld1 voldemort]$ bin/vadmin.sh meta set --help

NAME
  meta set - Set metadata on nodes

SYNOPSIS
  meta set <meta-key>=<meta-value>[,<meta-key2>=<meta-value2>] -u <url>
           [-n <node-id-list> | --all-nodes] [--confirm]

COMMENTS
  To set one metadata, please specify one of the following:
    cluster.xml (meta-value is cluster.xml file path)
    stores.xml (meta-value is stores.xml file path)
    slop.streaming.enabled
    partition.streaming.enabled
    readonly.fetch.enabled
    quota.enforcement.enabled
    rebalancing.source.cluster.xml
    rebalancing.steal.info.key
    offline
  To set a pair of metadata values, valid meta keys are:
    cluster.xml (meta-value is cluster.xml file path)
    stores.xml (meta-value is stores.xml file path)

Option                              Description                
------                              -----------                
--all-nodes                         select all nodes           
--confirm                           confirm dangerous operation
-h, --help                          show help menu             
--meta-set [meta-key>=<meta-file]   metadata key-file pairs    
-n, --node <Integer: node-id-list>  node id list               
-u, --url <url>                     bootstrap url              



bin/vadmin.sh meta set cluster.xml=<file> will update the cluster.xml

But this just sets the metadata, if you want to add new nodes or remove nodes, you need to complete the operation via other means before updating the metadata.

Thanks,
Arun.

On Mon, Jun 29, 2015 at 9:53 AM, Dallas Marlow <dallas...@gmail.com> wrote:
I apologize if this is documented somewhere, but what would be the best way to update the cluster.xml value for a running voldemort server (embedded or standalone)?

--
You received this message because you are subscribed to the Google Groups "project-voldemort" group.
To unsubscribe from this group and stop receiving emails from it, send an email to project-voldem...@googlegroups.com.
Visit this group at http://groups.google.com/group/project-voldemort.
For more options, visit https://groups.google.com/d/optout.

Dallas Marlow

unread,
Jun 29, 2015, 3:00:43 PM6/29/15
to project-...@googlegroups.com
I can provide a bit more context, I'm attempting to automate the replacement of a node in the cluster without restarting all voldemort instances if possible. the changes to cluster.xml would be replacing a particular node address and ports, but the size of the cluster and partition assignments would be unchanged. 

--
You received this message because you are subscribed to a topic in the Google Groups "project-voldemort" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/project-voldemort/4DU0iOiO1qY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to project-voldem...@googlegroups.com.

Arunachalam

unread,
Jun 29, 2015, 3:34:17 PM6/29/15
to project-...@googlegroups.com
Please take a look at this.


This automates most of the replacing of the node. Please let us know if you need further information.

Thanks,
Arun.
Reply all
Reply to author
Forward
0 new messages