Download this gist, and then run:
chmod 755 open_files_limit_mac.sh
./open_files_limit_mac.sh
Restart the system, and then run:
Download this gist, and then run:
chmod 755 open_files_limit_mac.sh
./open_files_limit_mac.sh
Restart the system, and then run:
| sudo yum install libprotobuf-dev protobuf-compiler | |
| sudo yum install protobuf-devel | |
| sudo yum install gcc gcc-c++ glibc-devel make ncurses-devel openssl-devel autoconf java-1.8.0-openjdk-devel git | |
| sudo yum install pam-devel | |
| curl -O https://raw.githubusercontent.com/spawngrid/kerl/master/kerl | |
| chmod a+x kerl | |
| CFLAGS="-DOPENSSL_NO_EC=1" kerl build git git://github.com/basho/otp.git OTP_R16B02_basho8 R16B02-basho8 | |
| CFLAGS="-DOPENSSL_NO_EC=1" kerl install R16B02-basho8 ~/erlang/R16B02-basho8 | |
| . ~/erlang/R16B02-basho8/activate |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # Install these plugins | |
| # vagrant plugin install vagrant-hostmanager | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| #Setup hostmanager config to update the host files | |
| config.hostmanager.enabled = true |
| {mode, max}. | |
| {duration, 1}. | |
| {concurrent, 1}. | |
| {driver, basho_bench_driver_http}. | |
| {key_generator, {int_to_str, {uniform_int, 50000}}}. | |
| {value_generator, {fixed_bin, 10000}}. |
| % curl -i -XPUT http://localhost:8098/search/index/my_index | |
| % riak-admin bucket-type create maps '{"props":{"search_index":"my_index","datatype":"map"}}' | |
| % riak-admin bucket-type activate maps | |
| {mode, max}. | |
| {duration, 1}. | |
| {concurrent, 1}. | |
| curl -XPOST http://localhost:8098/types/location_type/buckets/people/datatypes/person1 \ | |
| -H "Content-Type: application/json" \ | |
| -d ' | |
| { | |
| "update": { "username_register": "user1", "city_register": "Denver", "state_register": "NY", "position_register": "42.27,-74.53" } | |
| }' | |
| curl -XPOST http://localhost:8098/types/location_type/buckets/people/datatypes/person2 \ | |
| -H "Content-Type: application/json" \ | |
| -d ' |
| {mode, max}. | |
| % Setup: | |
| % curl -i -XPUT http://localhost:8098/search/index/my_index | |
| % riak-admin bucket-type create maps '{"props":{"search_index":"my_index","datatype":"map"}}' | |
| % riak-admin bucket-type activate maps | |
| {duration, 1}. | |
| {concurrent, 1}. |