Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi backend documentation is incomplete [JIRA: DOC-432] #2123

Closed
lukebakken opened this issue Jun 23, 2016 · 0 comments
Closed

Multi backend documentation is incomplete [JIRA: DOC-432] #2123

lukebakken opened this issue Jun 23, 2016 · 0 comments

Comments

@lukebakken
Copy link
Contributor

lukebakken commented Jun 23, 2016

From this email thread, with regard to the multi backend documentation:

Trying to use the memory backend via multi.
What I did in riak.conf:

storage_backend = multi

Then creating a bucket type:

riak-admin bucket-type create os_cache '{"props": {"write_once": true,"backend":"memory","n_val":2,"r":1,"w":1,"dw":1}}'
riak-admin bucket-type activate os_cache

Then I PUT an object:

curl -v -XPUT -H "Content-Type: application/octet-stream" 
'http://localhost:8098/types/os_cache/buckets/os_cache/keys/test1' -d 'test'

Next, I shut down all of the servers at once, leaving nothing in the cluster, then restarting them. And a new get for the above URL returns "test".
When I set storage_backend to memory, it works as expected, after a full cluster stop, the bucket is empty.

Here is a configuration that could have been used, that would create two backends, one using memory that is called my_memory_backend, and one using leveldb that is called my_leveldb_backend:

storage_backend = multi
multi_backend.my_memory_backend.storage_backend = memory
multi_backend.my_leveldb_backend.storage_backend = leveldb

Then, the rest of the configuration is as follows:

riak-admin bucket-type create os_cache '{"props": {"write_once": true,"backend":"my_memory_backend","n_val":2,"r":1,"w":1,"dw":1}}'
riak-admin bucket-type activate os_cache

This is somewhat related to issue #1548

@Basho-JIRA Basho-JIRA changed the title Multi backend documentation is incomplete Multi backend documentation is incomplete [JIRA: DOC-432] Jun 23, 2016
@lukebakken lukebakken closed this as not planned Won't fix, can't repro, duplicate, stale Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants