Troubleshooting

Selecting an IP Address Range for Your Redis Instance

Each Cloud Memorystore for Redis instance has an assigned IP address range. This range is either automatically chosen or specified manually when creating an instance. If you want to specify the range yourself, two conditions must be met:

  • The range must be a valid RFC 1918 private IP range.
  • The range can't overlap with any existing subnets from the authorized network or other Redis instances.

If you want to specify your own range, you'll need to know which ranges are unavailable in your project. To find out all IP address ranges that are unavailable:

  1. Go to the VPC Networks page in the Google Cloud Platform Console.
    VPC Networks
  2. In the list of VPC networks, find the network that you want to authorize.
  3. Make note of all IP address ranges assigned to subnets in that network. The IP address range you choose for the Redis instance must not overlap with any of these ranges.
  4. Enter the command to list all instances in the project. Make note of all the IP address ranges assigned to each of the Redis instances. This is listed in the reserved-ip-range column.

    gcloud redis instances list

A reserved IP address block of size /28 or /29 is sufficient for instances in Basic and Standard Tiers.

Troubleshooting import and export issues

This section outlines some common issues you may run into when using import and export for Cloud Memorystore for Redis.

Import and export buttons are disabled in the GCP Console

Issue: the user logged into the console does not have the redis.instances.import and/or redis.instances.export permissions required to import and/or export RDB files.

Solution: grant the permissions to the user, and refresh the instance details page.

The import operation completed but the data was not restored

If an import operation completes but the data is not restored, first check either the GCP Console or the command line for an error message, and resolve any issues described by the error message.

If there is a failure during the import process, the instance is recovered using an empty RDB file. You can attempt to restore the data by importing the same RDB file again, or using a different RDB file.

The import failed because the RDB file was too big

If you received the error message "Import RDB file gs://bucket/object.rdb size exceeds max memory 10GB", you should scale up your instance and retry the import. You can also try to import a smaller RDB file into your instance.

Was this page helpful? Let us know how we did:

Send feedback about...

Google Cloud Memorystore for Redis