HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/396/help/man/man1/gcloud_memcache_instances_update.1
.TH "GCLOUD_MEMCACHE_INSTANCES_UPDATE" 1



.SH "NAME"
.HP
gcloud memcache instances update \- update a Memorystore Memcached instance



.SH "SYNOPSIS"
.HP
\f5gcloud memcache instances update\fR (\fIINSTANCE\fR\ :\ \fB\-\-region\fR=\fIREGION\fR) (\fB\-\-parameters\fR=\fIKEY\fR=\fIVALUE\fR\ |\ \fB\-\-display\-name\fR=\fIDISPLAY_NAME\fR\ \fB\-\-labels\fR=[\fIKEY\fR=\fIVALUE\fR,...]\ \fB\-\-node\-count\fR=\fINODE_COUNT\fR\ \fB\-\-maintenance\-window\-any\fR\ |\ \fB\-\-maintenance\-window\-day\fR=\fIMAINTENANCE_WINDOW_DAY\fR\ \fB\-\-maintenance\-window\-duration\fR=\fIMAINTENANCE_WINDOW_DURATION\fR\ \fB\-\-maintenance\-window\-start\-time\fR=\fIMAINTENANCE_WINDOW_START_TIME\fR) [\fB\-\-async\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

Update a Memcached instance with one or more of the following actions:
.RS 2m
.IP "\(bu" 2m
Scale up or down the number of nodes in the instance.
.IP "\(bu" 2m
Stage an update to instance configuration parameters.
.IP "\(bu" 2m
Update the instance metadata (display name, labels).
.RE
.sp

Updating parameters cannot be combined with any other update actions in the same
call. All other update actions can be combined in the same call.



.SH "EXAMPLES"

To scale a Memcached instance named 'my\-memcache\-instance' in region
\'us\-central1' to have 3 nodes, run:

.RS 2m
$ gcloud memcache instances update my\-memcache\-instance \e
    \-\-node\-count=3 \-\-region=us\-central1
.RE

To stage an update to the parameters 'protocol' and 'track\-sizes' for a
Memcached instance named 'my\-memcache\-instance' in region 'us\-central1', run:

.RS 2m
$ gcloud memcache instances update my\-memcache\-instance \e
    \-\-parameters="protocol=ascii,track\-sizes=true" \e
    \-\-region=us\-central1
.RE

To 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:

.RS 2m
$ gcloud memcache instances update my\-memcache\-instance \e
    \-\-display\-name="Foo Cache Service" \e
    \-\-labels="env=test,service=foo"
.RE



.SH "POSITIONAL ARGUMENTS"

.RS 2m
.TP 2m

Instance resource \- Arguments and flags that specify the Memcached instance to
update. The arguments in this group can be used to specify the attributes of
this resource. (NOTE) Some attributes are not given arguments in this group but
can be set in other ways.

To set the \f5project\fR attribute:
.RS 2m
.IP "\(em" 2m
provide the argument \f5instance\fR on the command line with a fully specified
name;
.IP "\(em" 2m
provide the argument \f5\-\-project\fR on the command line;
.IP "\(em" 2m
set the property \f5core/project\fR.
.RE
.sp

This must be specified.


.RS 2m
.TP 2m
\fIINSTANCE\fR

ID of the instance or fully qualified identifier for the instance.

To set the \f5instance\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5instance\fR on the command line.
.RE
.sp

This positional argument must be specified if any of the other arguments in this
group are specified.

.TP 2m
\fB\-\-region\fR=\fIREGION\fR

The name of the Memcached region of the instance. Overrides the default
memcache/region property value for this command invocation.


To set the \f5region\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5instance\fR on the command line with a fully specified
name;
.IP "\(bu" 2m
provide the argument \f5\-\-region\fR on the command line;
.IP "\(bu" 2m
set the property \f5memcache/region\fR.
.RE
.sp


.RE
.RE
.sp

.SH "REQUIRED FLAGS"

.RS 2m
.TP 2m

Exactly one of these must be specified:


.RS 2m
.TP 2m
\fB\-\-parameters\fR=\fIKEY\fR=\fIVALUE\fR

User defined parameters to apply to the memcached process on each node. Possible
attributes include:

.RS 2m
.TP 2m
\fBlisten\-backlog\fR
The backlog queue limit for the instance.

.TP 2m
\fBdisable\-flush\-all\fR
If enabled, flush_all command will be disabled. Applicable to 1.4.24 and higher.

.TP 2m
\fBmax\-item\-size\fR
Max bytes of the instnace. Must at least be equal to slab_chunk_max (which
defaults to 524288 bytes) and less than 134217728 bytes. Additionally it must be
a multiple of slab_chunk_max.

.TP 2m
\fBslab\-min\-size\fR
This is an integer in the range [1, 1024].

.TP 2m
\fBslab\-growth\-factor\fR
This is a float in the range [1.01, 100].

.TP 2m
\fBprotocol\fR
This is an enum with acceptable values of ["ascii", "auto"].

.TP 2m
\fBdisable\-cas\fR
This is a boolean value.

.TP 2m
\fBdisable\-evictions\fR
This is a boolean value.

.TP 2m
\fBmax\-reqs\-per\-event\fR
This is an integer in the range [1, 1000].

.TP 2m
\fBtrack\-sizes\fR
This is a boolean value.

.TP 2m
\fBworker\-logbuf\-size\fR
This is an integer in the range [48, 524288].

.TP 2m
\fBwatcher\-logbuf\-size\fR
This is an integer in the range [0, 2097151].

.TP 2m
\fBlru\-crawler\fR
This is a boolean value.

.TP 2m
\fBidle\-timeout\fR
This is an integer in the range [1,86400].

.TP 2m
\fBlru\-maintainer\fR
This is a boolean value.

.TP 2m
\fBmaxconns\-fast\fR
This is a boolean value.

.TP 2m
\fBhash\-algorithm\fR
This is an enum with accepted values of ["jenkins", "murmur3"].

.RE
.sp
.TP 2m
\fB\-\-display\-name\fR=\fIDISPLAY_NAME\fR

An arbitrary and optional user provided name for the instance.

.TP 2m
\fB\-\-labels\fR=[\fIKEY\fR=\fIVALUE\fR,...]

List of label KEY=VALUE pairs to add.

.TP 2m
\fB\-\-node\-count\fR=\fINODE_COUNT\fR

Number of memcache nodes in this instance. Valid values range from 1 to 20.

.TP 2m

At most one of these can be specified:


.RS 2m
.TP 2m
\fB\-\-maintenance\-window\-any\fR

Removes the user\-specified maintenance window.

.TP 2m
\fB\-\-maintenance\-window\-day\fR=\fIMAINTENANCE_WINDOW_DAY\fR

The day of week when the window starts, e.g. 'sunday'.
\fIMAINTENANCE_WINDOW_DAY\fR must be one of: \fBfriday\fR, \fBmonday\fR,
\fBsaturday\fR, \fBsunday\fR, \fBthursday\fR, \fBtuesday\fR, \fBwednesday\fR.

.TP 2m
\fB\-\-maintenance\-window\-duration\fR=\fIMAINTENANCE_WINDOW_DURATION\fR

Duration in integer hours (\f53\fR to \f58\fR) of the maintenance window.

.TP 2m
\fB\-\-maintenance\-window\-start\-time\fR=\fIMAINTENANCE_WINDOW_START_TIME\fR

Hour of day (0 to 23) for the start of maintenance window, in UTC time zone.


.RE
.RE
.RE
.sp

.SH "OPTIONAL FLAGS"

.RS 2m
.TP 2m
\fB\-\-async\fR

Return immediately, without waiting for the operation in progress to complete.


.RE
.sp

.SH "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 \fB$ gcloud help\fR for details.



.SH "API REFERENCE"

This command uses the \fBmemcache/v1\fR API. The full documentation for this API
can be found at: https://cloud.google.com/memorystore/



.SH "NOTES"

These variants are also available:

.RS 2m
$ gcloud alpha memcache instances update
.RE

.RS 2m
$ gcloud beta memcache instances update
.RE