I am trying to setup FoundationDB on an AWS EC2 server (amazon linux 2, t3a.medium). I can get the database running and accessible locally. However, I’m trying to get it accessible from a different webserver and that is not working.
For the server running fdb (not the webserver), my publicly accessible IP address is 3.18.104.196, but AWS uses private IP addresses, so if I for example run make_public.py, the “public” IP address is 172.31.38.132. I’ve tried different combinations of those two addresses in the command to run fdbserver and in the cluster file used to run the client, but I can’t get remote access to work.
If I do:
sudo fdbserver -p 172.31.38.132:4500
and fdbcli with a fdb.cluster of: abc:abc@172.31.38.132:4500
from the server running fdbserver
then fdbcli works and can read and write to the database
but fdbcli with a fdb.cluster of: abc:abc@172.31.38.132:4500
from a different webserver gets:
The database is unavailable; type `status’ for more information.
Could not communicate with a quorum of coordination servers:
172.31.38.132:4500 (unreachable)
This makes sense, but I wanted to include for completion and to show that the database does work with local access.
It seems like I should be able to use the -l and -p arguments to make it work, but that hasn’t fixed it.
When I do:
sudo fdbserver -l 172.31.38.132:4500 -p 3.18.104.196:4500
and fdbcli with a fdb.cluster of: abc:abc@172.31.38.132:4500
from the server running fdbserver
I get
Unable to communicate with the cluster controller at 3.18.104.196:4500 to get
status.
Coordination servers:
172.31.38.132:4500 (reachable)
-------
When I do:
sudo fdbserver -l 172.31.38.132:4500 -p 3.18.104.196:4500
and fdbcli with a fdb.cluster of: abc:abc@3.18.104.196:4500
from the server running fdbserver
Could not communicate with a quorum of coordination servers:
3.18.104.196:4500 (unreachable)
-------
When I do:
(while the fdb server is running with: sudo fdbserver -l 172.31.38.132:4500 -p 3.18.104.196:4500
)
running fdbcli with a fdb.cluster of: abc:abc@172.31.38.132:4500
from the webserver
I get
Could not communicate with a quorum of coordination servers:
172.31.38.132:4500 (unreachable)
running fdbcli with a fdb.cluster of: abc:abc@3.18.104.196:4500
from the webserver
I get
Could not communicate with a quorum of coordination servers:
3.18.104.196:4500 (unreachable)
Any help I can get in running fdb in a way that I can connect to it would be appreciated. Or at least some tips for where to look into what’s going wrong.