How can I connect from a remote server to a CrateDB node using crash?

Oh, indeed! I’ve set the heap size to 16 GB (because that node has 64 GB RAM):

administrator@crate-dn-001:~$ grep -i "heap" /etc/default/crate | grep -v "^#"
CRATE_HEAP_SIZE=16G

And then tried _site_, _local_ again:

administrator@crate-dn-001:~$ grep "network\.host" /etc/crate/crate.yml | grep -v "^#"
network.host: _site_, _local_

This time it restarted without any problems, and now I can connect from a remote, non-CrateDB related server with my newly created database user:

(cratedb) loadgenerator001@eris:~$ crash --verbose --hosts 192.168.239.30 --username energytix
Password:
+----------------------------+--------------+---------+-----------+---------+
| server_url                 | node_name    | version | connected | message |
+----------------------------+--------------+---------+-----------+---------+
| http://192.168.239.30:4200 | Gurpitscheck | 4.6.3   | TRUE      | OK      |
+----------------------------+--------------+---------+-----------+---------+
CONNECT OK
CLUSTER CHECK OK
TYPES OF NODE CHECK OK
cr> \q
Bye!

It’ll be good if you put it somewhere visible in the documentation, or some F.A.Q. for pitfalls, etc.

Thanks a lot for your great technical support and solving this issue so quickly. :pray::+1:

1 Like