Starting Scalaris

22 views
Skip to first unread message

Steve Ramage

unread,
Oct 24, 2011, 4:44:57 PM10/24/11
to scalaris
I'm trying to start Scalaris, but I keep getting dropped into the
erlang shell with various warnings printed, I'm not sure why.
Admittedly I'm just starting out.


root@ip-10-169-31-98:~/scalaris-0.3.0/bin# scalarisctl -m -n firstnode
-p 14195 -y 8000 -s -f start
Erlang R13B03 (erts-5.7.4) [source] [64-bit] [smp:4:4] [rq:4] [async-
threads:0] [hipe] [kernel-poll:false]

Eshell V5.7.4 (abort with ^G)
(firs...@ip-10-169-31-98.us-west-1.compute.internal)1> [warn] "to >
127.0.0.1:14194" Connection failed, drop message {connect}
[warn] "to > 127.0.0.1:14194" Connection failed, drop message
{send_to_group_member,service_per_vm,{hi}}
[warn] "to > 127.0.0.1:14194" Connection failed, drop message
{register,{{127,0,0,1},14195,<0.117.0>}}


root@ip-10-169-31-98:~/scalaris-0.3.0/bin# cat scalaris.local.cfg
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Settings for distributed Erlang
% (see scalaris.hrl to switch)

% {mgmt_server, {mgmt_server,'mgmt_...@foo.bar.com'}}.
% {known_hosts, [{service_per_vm, 'firs...@foo.bar.com'}]}.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Settings for TCP mode.
% (see scalaris.hrl to switch)

%% userdevguide-begin local_cfg:distributed
% Insert the appropriate IP-addresses for your setup
% as comma separated integers:
% IP Address, Port, and label of the boot server
{mgmt_server, {{127,0,0,1}, 14194, mgmt_server}}.

% IP Address, Port, and label of a node which is already in the system
{known_hosts, [{{127,0,0,1}, 14195, service_per_vm}]}.
%% userdevguide-end local_cfg:distributed



Thorsten Schuett

unread,
Oct 25, 2011, 3:53:17 AM10/25/11
to scal...@googlegroups.com
Hi Steve,

this is the expected behaviour. You are starting scalaris in the foreground,
i.e. not in daemon mode. The result is a running scalaris and you will get the
normal erlang shell e.g. for debugging. You can now point your browser to
localhost:8000 to see the web gui.

Or you can directly query scalaris using the erlang shell:

(firstnode@localhost)1> api_tx:read("foo").
{fail,not_found}
(firstnode@localhost)2> api_tx:write("foo", "bar").
{ok}
(firstnode@localhost)3> api_tx:read("foo").
{ok,"bar"}

Thorsten

Nico Kruber

unread,
Oct 25, 2011, 3:56:51 AM10/25/11
to scal...@googlegroups.com
as an additional note:
your scalaris.local.cfg points to the wrong port for the management server you
have started. Your node therefore did not register with the management server
but should be operational anyway. The warnings only indicate this. You should
be able to use the shell, e.g. type [enter] and you'll see the ordinary erlang
prompt.
Please also note that the management server's only purpose is to be able to
monitor the whole ring, it is not mandatory for a working Scalaris ring.

Nico

signature.asc
Reply all
Reply to author
Forward
0 new messages