3. A million values isn’t cool.
You know what’s cool?...
Tuesday, November 12, 13
4. A trillion values spread across
lots of nodes that auto-index and you can
also search in cool ways like geographically
or maybe you could extract from a pdf on the server side if you used the extractor API
Tuesday, November 12, 13
6. ## The enabled Yokozuna set this 'on'.
yokozuna = off
riak.conf
## The port number which Solr binds to.
yokozuna.solr_port = 10014
## The port number which Solr JMX binds to.
yokozuna.solr_jmx_port = 10013
## The arguments to pass to the Solr JVM. Non-standard
## arguments, i.e. -XX, may not be portable across JVM
## implementations. E.g. -XX:+UseCompressedStrings.
yokozuna.solr_jvm_args = -Xms1g -Xmx1g -XX:
+UseStringCache -XX:+UseCompressedOops
## The data under which to store all Yokozuna related data.
## Including the Solr index data.
yokozuna.data_dir = ./data/yz
Tuesday, November 12, 13
7. ## The enabled Yokozuna set this 'on'.
yokozuna = on
riak.conf
## The port number which Solr binds to.
yokozuna.solr_port = 10014
## The port number which Solr JMX binds to.
yokozuna.solr_jmx_port = 10013
## The arguments to pass to the Solr JVM. Non-standard
## arguments, i.e. -XX, may not be portable across JVM
## implementations. E.g. -XX:+UseCompressedStrings.
yokozuna.solr_jvm_args = -Xms1g -Xmx1g -XX:
+UseStringCache -XX:+UseCompressedOops
## The data under which to store all Yokozuna related data.
## Including the Solr index data.
yokozuna.data_dir = ./data/yz
Tuesday, November 12, 13
8. riak-admin cluster join riak@10.0.0.2
... and so on...
riak-admin cluster plan
riak-admin cluster commit
Tuesday, November 12, 13
9. riak-admin cluster join riak@10.0.0.2
... and so on...
riak-admin cluster plan
riak-admin cluster commit
riak-admin security add-user eric 12345
riak-admin security add-user admin 123456
riak-admin security grant yokozuna.search
ON index simple TO eric
riak-admin security grant yokozuna.admin
ON index TO admin
Tuesday, November 12, 13
10. require 'riak'
client = Riak::Client.new
# create index
client.create_search_index('simple')
# tie the index to bucket 'cats'
bucket = Riak::Bucket.new(client, 'cats')
bucket.props = { yz_index: 'simple' }
Tuesday, November 12, 13
38. Permissions
riak-admin security grant yokozuna.admin ON schema TO admin
riak-admin security grant yokozuna.admin ON index TO admin
riak-admin security grant yokozuna.search ON index TO user
riak-admin security grant yokozuna.search ON index wiki TO user
Tuesday, November 12, 13