Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
En esta página, se explica cómo encontrar y conectarte al extremo del servicio de descubrimiento automático de tu instancia de Memcached. A fin de obtener más información sobre el servicio de descubrimiento automático de Memorystore para Memcached, consulta Descripción general del servicio de descubrimiento automático.
Encuentra el extremo de detección de tu instancia
Puedes encontrar el extremo de descubrimiento de tu instancia de Memcached en la página de detalles de la instancia en la consola de Google Cloud .
También puedes ver el extremo de descubrimiento de tu instancia de Memcached si ejecutas el siguiente comando y reemplazas variables por los valores apropiados:
Los valores para el extremo de detección se enumeran en la etiqueta discoveryEndpoint:
discoveryEndpoint: [IP-address]:[port-number]
Conéctate al extremo de detección de tu instancia mediante Telnet
Para conectarte al extremo de detección de tu instancia mediante Telnet, ejecuta el siguiente comando y reemplaza las variables por los valores adecuados:
Una vez conectado al extremo de detección de tu instancia de Memorystore para Memcached mediante Telnet, ejecuta el siguiente comando de Memcached a fin de obtener el ID de la versión de configuración y la lista de nodos:
config get cluster
Este comando muestra la siguiente información en el siguiente formato:
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-05 (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)."]]