Stay organized with collections
Save and categorize content based on your preferences.
This page explains how to find and connect to your Memcached instance's Auto
Discovery service endpoint. For more information about Memorystore for Memcached's
Auto Discovery service, see Auto Discovery service overview.
Finding your instance's discovery endpoint
You can find the discovery endpoint for your Memcached instance on the
instance's details page in the Google Cloud console.
You can also view your Memcached instance's discovery endpoint by running the
following command, replacing variables with appropriate values:
Once connected to your Memorystore for Memcached instance's discovery endpoint
using Telnet, run the following Memcached command to get the Configuration
Version ID and Node List:
config get cluster
This command returns the following information in the following format:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-25 UTC."],[],[],null,["# Use the Auto Discovery service\n\nThis page explains how to find and connect to your Memcached instance's Auto\nDiscovery service endpoint. For more information about Memorystore for Memcached's\nAuto Discovery service, see [Auto Discovery service overview](/memorystore/docs/memcached/auto-discovery-overview).\n\nFinding your instance's discovery endpoint\n------------------------------------------\n\nYou can find the discovery endpoint for your Memcached instance on the\ninstance's details page in the Google Cloud console.\n\nYou can also view your Memcached instance's discovery endpoint by running the\nfollowing command, replacing \u003cvar translate=\"no\"\u003evariables\u003c/var\u003e with appropriate values: \n\n```\ngcloud memcache instances describe instance-id --project=project --region=region --format=\"default(discoveryEndpoint)\"\n```\n\nThe values for the discovery endpoint are listed under the\n`discoveryEndpoint` label:\n\n- `discoveryEndpoint: [IP-address]:[port-number]`\n\nConnecting to your instance's discovery endpoint using Telnet\n-------------------------------------------------------------\n\n| **Note:** You should not use the discovery endpoint for Memcached data queries such as `set` and `get`.\n\nTo connect to your instance's discovery endpoint using Telnet, run the following\ncommand, replacing \u003cvar translate=\"no\"\u003evariables\u003c/var\u003e with appropriate values: \n\n```\ntelnet discovery-endpoint-ip-address discovery-endpoint-port-number\n```\n\nOnce connected to your Memorystore for Memcached instance's discovery endpoint\nusing Telnet, run the following Memcached command to get the Configuration\nVersion ID and Node List: \n\n```\nconfig get cluster\n```\n\nThis command returns the following information in the following format: \n\n```\nCONFIG cluster 0 [length-of-payload-in-next-two-lines]\n[integer]\n[node1-ip]|[node1-ip]|[node1-port][node2-ip]|[node2-ip]|[node2-port]\n\\r\\n\nEND\\r\\n\n```\n\n- The last integer of the first line represents the number of bytes contained\n in the next two lines.\n\n - If you are not configuring your parser, you can ignore this line.\n - This line is helpful if you are programming your parser which may need to determine the length of the bytes to read from the request.\n- The second line is an integer, which is the Configuration Version ID\n described in [Overview of Auto Discovery service architecture](/memorystore/docs/memcached/auto-discovery-overview#overview_of_auto_discovery_service_architecture).\n\n- The third line is the Node List string, which contains the IP addresses and\n port numbers of the current nodes in your cluster.\n\nWhat's next\n-----------\n\n- Learn more about Auto Discovery with the [Auto Discovery service overview](/memorystore/docs/memcached/auto-discovery-overview).\n- View the available [Memcached configurations](/memorystore/docs/memcached/memcached-configs)."]]