Multi-node on a single host configuration
Hello i'm trying to build multi-nodes on a single host following the link.
https://www.tiot.jp/riak-docs/riak/kv/3.2.0/using/running-a-cluster/#running-multiple-nodes-on-one-host
I built `riak` from a source following the guide using OTP 25 (https://github.com/basho/riak/issues/1131, https://github.com/basho/riak/issues/1136)
And it works well when i run a first node with the binary
```
$ sudo ./rel/riak1/bin/riak console
Exec: /home/user/injung/riak-riak-3.2.0/rel/riak1/erts-13.2.2.2/bin/erlexec -boot /home/user/injung/riak-riak-3.2.0/rel/riak1/releases/3.2.0/start -mode embedded -boot_var SYSTEM_LIB_DIR /home/user/injung/riak-riak-3.2.0/rel/riak1/lib -config /home/user/injung/riak-riak-3.2.0/rel/riak1/sys.config -args_file /home/user/injung/riak-riak-3.2.0/rel/riak1/vm.args -- console
Root: /home/user/injung/riak-riak-3.2.0/rel/riak1
/home/user/injung/riak-riak-3.2.0/rel/riak1
!!!!
!!!! WARNING: ulimit -n is 1024; 65536 is the recommended minimum.
!!!!
Erlang/OTP 25 [erts-13.2.2.2] [source] [64-bit] [smp:40:40] [ds:40:40:10] [async-threads:64] [jit:ns]
Eshell V13.2.2.2 (abort with ^G)
(riak@127.0.0.1)1>
```
and then when i try to run second one
It returns an error
```
$ sudo ./rel/riak2/bin/riak console
Exec: /home/user/injung/riak-riak-3.2.0/rel/riak2/erts-13.2.2.2/bin/erlexec -boot /home/user/injung/riak-riak-3.2.0/rel/riak2/releases/3.2.0/start -mode embedded -boot_var SYSTEM_LIB_DIR /home/user/injung/riak-riak-3.2.0/rel/riak2/lib -config /home/user/injung/riak-riak-3.2.0/rel/riak2/sys.config -args_file /home/user/injung/riak-riak-3.2.0/rel/riak2/vm.args -- console
Root: /home/user/injung/riak-riak-3.2.0/rel/riak2
/home/user/injung/riak-riak-3.2.0/rel/riak2
!!!!
!!!! WARNING: ulimit -n is 1024; 65536 is the recommended minimum.
!!!!
Erlang/OTP 25 [erts-13.2.2.2] [source] [64-bit] [smp:40:40] [ds:40:40:10] [async-threads:64] [jit:ns]
{"Kernel pid terminated",application_controller,"{application_start_failure,riak_core,{bad_return,{{riak_core_app,start,[normal,[]]},{'EXIT',{{function_clause,[{orddict,fetch,['riak2@127.0.0.1',[{'riak@127.0.0.1',[{{riak_core,bucket_types},[true,false]},{{riak_core,fold_req_version},[v2,v1]},{{riak_core,net_ticktime},[true,false]},{{riak_core,resizable_ring},[true,false]},{{riak_core,security},[true,false]},{{riak_core,staged_joins},[true,false]},{{riak_core,vnode_routing},[proxy,legacy]},{{riak_kv,anti_entropy},[enabled_v1,disabled]},{{riak_kv,crdt},[[pncounter,riak_dt_pncounter,riak_dt_orswot,riak_dt_map,riak_kv_hll,riak_dt_gset],[pncounter,riak_dt_pncounter,riak_dt_orswot,riak_dt_map,riak_kv_hll],[pncounter,riak_dt_pncounter,riak_dt_orswot,riak_dt_map],[pncounter],[]]},{{riak_kv,crdt_epoch_versions},[[{riak_dt_map,2},{riak_dt_orswot,2},{riak_dt_pncounter,2},{riak_kv_hll,1},{riak_dt_gset,2}],[{riak_dt_map,2},{riak_dt_orswot,2},{riak_dt_pncounter,2},{riak_kv_hll,1}],[{riak_dt_map,2},{riak_dt_orswot,2},{riak_dt_pncounter,2}],[{riak_dt_pncounter,2}]]},{{riak_kv,get_request_type},[head,get]},{{riak_kv,handoff_data_encoding},[encode_raw,encode_zlib]},{{riak_kv,index_backpressure},[true,false]},{{riak_kv,legacy_keylisting},[false]},{{riak_kv,listkeys_backpressure},[true,false]},{{riak_kv,mapred_2i_pipe},[true,false]},{{riak_kv,mapred_system},[pipe]},{{riak_kv,object_format},[v1,v0]},{{riak_kv,object_hash_version},[0,legacy]},{{riak_kv,put_fsm_ack_execute},[enabled,disabled]},{{riak_kv,put_soft_limit},[true,false]},{{riak_kv,secondary_index_version},[v3,v2,v1]},{{riak_kv,tictacaae_prompted_repairs},[true,false]},{{riak_kv,vclock_data_encoding},[encode_zlib,encode_raw]},{{riak_kv,vnode_vclocks},[true,false]},{{riak_pipe,trace_format},[ordsets,sets]},{{riak_repl,bloom_fold},[true,false]},{{riak_repl,default_bucket_props_hash},[[consistent,datatype,n_val,write_once],[consistent,datatype,n_val,allow_mult,last_write_wins]]},{{riak_repl,rtq_meta},[true,false]}]}]],[{file,\"orddict.erl\"},{line,80}]},{riak_core_capability,renegotiate_capabilities,1,[{file,\"/home/user/injung/riak-riak-3.2.0/_build/default/lib/riak_core/src/riak_core_capability.erl\"},{line,443}]},{riak_core_capability,handle_call,3,[{file,\"/home/user/injung/riak-riak-3.2.0/_build/default/lib/riak_core/src/riak_core_capability.erl\"},{line,215}]},{gen_server,try_handle_call,4,[{file,\"gen_server.erl\"},{line,1149}]},{gen_server,handle_msg,6,[{file,\"gen_server.erl\"},{line,1178}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,240}]}]},{gen_server,call,[riak_core_capability,{register,{riak_core,vnode_routing},{capability,[proxy,legacy],legacy,{riak_core,legacy_vnode_routing,[{true,legacy},{false,proxy}]}}},infinity]}}}}}}"}
Kernel pid terminated (application_controller) ({application_start_failure,riak_core,{bad_return,{{riak_core_app,start,[normal,[]]},{'EXIT',{{function_clause,[{orddict,fetch,['riak2@127.0.0.1',[{'riak@127.0.0.1',[{{riak_core,bucket_types},[true,false]},{{riak_core,fold_req_version},[v2,v1]},{{riak_core,net_ticktime},[true,false]},{{riak_core,resizable_ring},[true,false]},{{riak_core,security},[true,false]},{{riak_core,staged_joins},[true,false]},{{riak_core,vnode_routing},[proxy,legacy]},{{riak_kv,anti_entropy},[enabled_v1,disabled]},{{riak_kv,crdt},[[pncounter,riak_dt_pncounter,riak_dt_orswot,riak_dt_map,riak_kv_hll,riak_dt_gset],[pncounter,riak_dt_pncounter,riak_dt_orswot,riak_dt_map,riak_kv_hll],[pncounter,riak_dt_pncounter,riak_dt_orswot,riak_dt_map],[pncounter],[]]},{{riak_kv,crdt_epoch_versions},[[{riak_dt_map,2},{riak_dt_orswot,2},{riak_dt_pncounter,2},{riak_kv_hll,1},{riak_dt_gset,2}],[{riak_dt_map,2},{riak_dt_orswot,2},{riak_dt_pncounter,2},{riak_kv_hll,1}],[{riak_dt_map,2},{riak_dt_orswot,2},{riak_
Crash dump is being written to: ./log/erl_crash.dump...done
```
It seems that some configuration collides, so the threads die.
https://www.tiot.jp/riak-docs/riak/kv/3.2.0/using/running-a-cluster/#running-multiple-nodes-on-one-host
I changed the three configuration values following the guide
```
nodename = riak1@127.0.0.1
...
# For Protocol Buffers:
listener.protobuf.internal = 127.0.0.1:8187
# For HTTP:
listener.http.internal = 127.0.0.1:8198
# For either interface:
handoff.port = 8199
```
at first, i changed the first two, and then added `handoff.port`
is there anything i should change more ?
Could you define the list of configurations (must be different from node to node) ?
I saw an issue (https://github.com/basho/riak/issues/863), but still it's not solved.
Thank you
关闭于 2023-09-20 17 条评论