Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Halaman ini menjelaskan cara menemukan dan terhubung ke endpoint layanan Discovery Otomatis instance Memcached Anda. Untuk informasi selengkapnya tentang layanan Penemuan Otomatis
Memorystore untuk Memcached, lihat Ringkasan layanan Penemuan Otomatis.
Menemukan endpoint penemuan instance
Anda dapat menemukan endpoint penemuan untuk instance Memcached di halaman detail instance di Google Cloud console.
Anda juga dapat melihat endpoint penemuan instance Memcached dengan menjalankan perintah berikut, dengan mengganti variables dengan nilai yang sesuai:
Setelah terhubung ke endpoint penemuan instance Memorystore for Memcached menggunakan Telnet, jalankan perintah Memcached berikut untuk mendapatkan ID Versi Konfigurasi dan Daftar Node:
config get cluster
Perintah ini menampilkan informasi berikut dalam format berikut:
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-19 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)."]]