gcloud alpha memcache instances update Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud alpha memcache instances update - update a Memorystore Memcached instance
- SYNOPSIS
gcloud alpha memcache instances update(INSTANCE:--region=REGION)(--parameters=KEY=VALUE|--display-name=DISPLAY_NAME--labels=[KEY=VALUE,…]--node-count=NODE_COUNT--maintenance-window-any|--maintenance-window-day=MAINTENANCE_WINDOW_DAY--maintenance-window-duration=MAINTENANCE_WINDOW_DURATION--maintenance-window-start-time=MAINTENANCE_WINDOW_START_TIME)[--async][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(ALPHA)Update a Memcached instance with one or more of thefollowing actions:- Scale up or down the number of nodes in the instance.
- Stage an update to instance configuration parameters.
- Update the instance metadata (display name, labels).
Updating parameters cannot be combined with any other update actions in the samecall. All other update actions can be combined in the same call.
- EXAMPLES
- To scale a Memcached instance named 'my-memcache-instance' in region'us-central1' to have 3 nodes, run:
gcloudalphamemcacheinstancesupdatemy-memcache-instance--node-count=3--region=us-central1To stage an update to the parameters 'protocol' and 'track-sizes' for aMemcached instance named 'my-memcache-instance' in region 'us-central1', run:
gcloudalphamemcacheinstancesupdatemy-memcache-instance--parameters="protocol=ascii,track-sizes=true"--region=us-central1To update a Memcached instance named 'my-memcache-instance' in region'us-central1' to have the display name "Foo Cache Service" and the labels 'env'and 'service', run:
gcloudalphamemcacheinstancesupdatemy-memcache-instance--display-name="Foo Cache Service"--labels="env=test,service=foo" - POSITIONAL ARGUMENTS
- Instance resource - Arguments and flags that specify the Memcached instance toupdate. The arguments in this group can be used to specify the attributes ofthis resource. (NOTE) Some attributes are not given arguments in this group butcan be set in other ways.
To set the
projectattribute:- provide the argument
instanceon the command line with a fullyspecified name; - provide the argument
--projecton the command line; - set the property
core/project.
This must be specified.
INSTANCE- ID of the instance or fully qualified identifier for the instance.
To set the
instanceattribute:- provide the argument
instanceon the command line.
This positional argument must be specified if any of the other arguments in thisgroup are specified.
- provide the argument
--region=REGION- The name of the Memcached region of the instance. Overrides the defaultmemcache/region property value for this command invocation.To set the
regionattribute:- provide the argument
instanceon the command line with a fullyspecified name; - provide the argument
--regionon the command line; - set the property
memcache/region.
- provide the argument
- provide the argument
- Instance resource - Arguments and flags that specify the Memcached instance toupdate. The arguments in this group can be used to specify the attributes ofthis resource. (NOTE) Some attributes are not given arguments in this group butcan be set in other ways.
- REQUIRED FLAGS
- Exactly one of these must be specified:
--parameters=KEY=VALUE- User defined parameters to apply to the memcached process on each node. Possibleattributes include:
listen-backlog- The backlog queue limit for the instance.
disable-flush-all- If enabled, flush_all command will be disabled. Applicable to 1.4.24 and higher.
max-item-size- Max bytes of the instnace. Must at least be equal to slab_chunk_max (whichdefaults to 524288 bytes) and less than 134217728 bytes. Additionally it must bea multiple of slab_chunk_max.
slab-min-size- This is an integer in the range [1, 1024].
slab-growth-factor- This is a float in the range [1.01, 100].
protocol- This is an enum with acceptable values of ["ascii", "auto"].
disable-cas- This is a boolean value.
disable-evictions- This is a boolean value.
max-reqs-per-event- This is an integer in the range [1, 1000].
track-sizes- This is a boolean value.
worker-logbuf-size- This is an integer in the range [48, 524288].
watcher-logbuf-size- This is an integer in the range [0, 2097151].
lru-crawler- This is a boolean value.
idle-timeout- This is an integer in the range [1,86400].
lru-maintainer- This is a boolean value.
maxconns-fast- This is a boolean value.
hash-algorithm- This is an enum with accepted values of ["jenkins", "murmur3"].
--display-name=DISPLAY_NAME- An arbitrary and optional user provided name for the instance.
--labels=[KEY=VALUE,…]- List of label KEY=VALUE pairs to add.
--node-count=NODE_COUNT- Number of memcache nodes in this instance. Valid values range from 1 to 20.
- At most one of these can be specified:
--maintenance-window-any- Removes the user-specified maintenance window.
--maintenance-window-day=MAINTENANCE_WINDOW_DAY- The day of week when the window starts, e.g. 'sunday'.
MAINTENANCE_WINDOW_DAYmust be one of:friday,monday,saturday,sunday,thursday,tuesday,wednesday. --maintenance-window-duration=MAINTENANCE_WINDOW_DURATION- Duration in integer hours (
3to8) of the maintenancewindow. --maintenance-window-start-time=MAINTENANCE_WINDOW_START_TIME- Hour of day (0 to 23) for the start of maintenance window, in UTC time zone.
- Exactly one of these must be specified:
- OPTIONAL FLAGS
--async- Return immediately, without waiting for the operation in progress to complete.
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$gcloud helpfor details. - API REFERENCE
- This command uses the
memcache/v1beta2API. The full documentationfor this API can be found at:https://cloud.google.com/memorystore/ - NOTES
- This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. These variants are also available:
gcloudmemcacheinstancesupdategcloudbetamemcacheinstancesupdate
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.