Check Memcached cluster status
To check the status of your Memcached Multiple instances:
-
Log in to the main server host through SSH.
-
Try to connect to the rest of Memcached instances using telnet (The placeholder MEMCACHED_INSTANCE_ADDRESS should be replaced with an actual address. Check this section to know how to retrieve the IP address of your instances).
$ telnet MEMCACHED_INSTANCE_ADDRESS 11211
NOTE: telnet is not installed by default. Learn how to install the telnet command line client.
If your Memcached instance is running you will see an output similar to this:
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
In order to exit the console type quit and press enter.
If on the contrary is not running you will get this error:
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
In case of the previous error please check the following:
- Check that the service is running. You can learn how in this section
- Verify that the IP address used is the proper one.
- Verify that the port number is correct. By default it is 11211.