View instance information

Viewing high-level information about Memorystore for Valkey instances is essential to obtain a comprehensive snapshot of the instance's state, configuration, and connectivity.

The following are sample use cases for viewing summary information about Memorystore for Valkey instances:

  • Retrieve connection endpoints: For Cluster Mode Enabled instances, you can retrieve the discovery endpoint, which consists of an IP address and port number. For Cluster Mode Disabled instances, you can obtain the primary and reader endpoints that you need to configure your client applications to connect to the instance.
  • Verify custom configurations: view configuration parameters that a user applies to an instance. For example, you can obtain the value that a user sets for the maxmemory-policy parameter.
  • Check information about nodes and shards: obtain information about the nodes and shards associated with an instance. This includes the number of shards, the node type, and the number of replicas that each shard has.
  • Confirm data resiliency settings: verify active persistence modes for Redis Database (RDB) snapshots and Append-Only File (AOF) log files, as well as the status of whether an instance is protected from accidental deletion.

View instance summary information

You can view summary information about an instance by using either the Google Cloud console or the gcloud CLI.

Console

  1. In the Google Cloud console, go to the Memorystore for Valkey page.

    Memorystore for Valkey

  2. Click the ID of an instance about which you want to view summary information.

gcloud

To view summary information about an instance, use the gcloud memorystore instances describe command:

gcloud memorystore instances describe INSTANCE_ID \
--location=REGION_ID

Make the following replacements:

  • INSTANCE_ID: the ID of the instance about which you want to view summary information
  • REGION_ID: the region where the instance is located

For example:

gcloud memorystore instances describe my-instance \
--location=us-central1

View zones for an instance

You can view which zones an instance uses by using either the Google Cloud console or the gcloud CLI.

Console

The Google Cloud console displays a tooltip, which lists the zones that your instance uses. If the instance is running in a two-zone deployment, then the tooltip indicates this deployment type. For more information, see Two-zone deployments for high availability and resilience.

To view which zones an instance uses, do the following:

  1. In the Google Cloud console, go to the Memorystore for Valkey page.

    Memorystore for Valkey

  2. Hold your mouse pointer over the number of zones for the instance.

gcloud

To view which zones an instance uses, use the gcloud memorystore instances describe command with the --format="yaml(zoneDistributionConfig)" flag.

gcloud memorystore instances describe INSTANCE_ID \
  --location=REGION_ID \
  --format="yaml(zoneDistributionConfig)"

Make the following replacements:

  • INSTANCE_ID: the ID of the instance
  • REGION_ID: the region where the instance is located

REST

To view the zones that an instance uses, use the following REST command.

Before using any of the request data, make the following replacements:

  • PROJECT_ID: the ID of the project that contains the instance
  • REGION_ID: the region where the instance is located
  • INSTANCE_ID: the ID of the instance

HTTP method and URL:

GET https://memorystore.googleapis.com/v1/projects/PROJECT_ID/locations/REGION_ID/instancesINSTANCE_ID

To send your request, expand one of these options:

You should receive a JSON response similar to the following:

{
  "name": "projects/PROJECT_ID/locations/REGION_ID/instances/INSTANCE_ID",
  "state": "ACTIVE",
  "shardCount": SHARD_COUNT,
  "zoneDistributionConfig": {
    "mode": "MULTI_ZONE",
    "zones": [
      "ZONE_1",
      "ZONE_2",
      "ZONE_3"
    ],
    "activeZones": [
      "ZONE_1",
      "ZONE_2"
    ]
  }
}