Ayush Mishra
Ayush Mishra

Reputation: 593

How to change riak storage backend property using Scala/Java code

Is there any way to override riak default property using Scala/Java code?

{riak_kv, [
...,
{storage_backend, riak_kv_memory_backend},
...
]}

Upvotes: 0

Views: 59

Answers (1)

bryan_basho
bryan_basho

Reputation: 159

In Riak 1.x changing storage backends can only be performed by changing the configuration and restarting the server. You could read the configuration using Parboiled, Antlr, JavaCC, or whatever parser you are familiar with, then write it back out and restart the server.

Upvotes: 1

Related Questions