File: //snap/google-cloud-cli/394/help/man/man1/gcloud_alpha_memcache_instances_create.1
.TH "GCLOUD_ALPHA_MEMCACHE_INSTANCES_CREATE" 1
.SH "NAME"
.HP
gcloud alpha memcache instances create \- create a Memorystore Memcached instance
.SH "SYNOPSIS"
.HP
\f5gcloud alpha memcache instances create\fR (\fIINSTANCE\fR\ :\ \fB\-\-region\fR=\fIREGION\fR) \fB\-\-node\-count\fR=\fINODE_COUNT\fR \fB\-\-node\-cpu\fR=\fINODE_CPU\fR \fB\-\-node\-memory\fR=\fINODE_MEMORY\fR [\fB\-\-async\fR] [\fB\-\-authorized\-network\fR=\fIAUTHORIZED_NETWORK\fR] [\fB\-\-display\-name\fR=\fIDISPLAY_NAME\fR] [\fB\-\-labels\fR=[\fIKEY\fR=\fIVALUE\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\-\-memcached\-version\fR=\fIMEMCACHED_VERSION\fR] [\fB\-\-parameters\fR=\fIKEY\fR=\fIVALUE\fR] [\fB\-\-reserved\-ip\-range\-id\fR=[\fIRESERVED_IP_RANGE_ID\fR,...]] [\fB\-\-zones\fR=[\fIZONES\fR,...]] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
\fB(ALPHA)\fR Create a new Memorystore Memcached instance.
This command can fail for the following reasons:
.RS 2m
.IP "\(bu" 2m
An instance with the same name already exists.
.IP "\(bu" 2m
The active account does not have the necessary permissions to create instances.
.RE
.sp
.SH "EXAMPLES"
To create a Memcached instance named 'my\-memcache\-instance' in region
\'us\-central1' with 3 nodes, each with 2 CPUs and 2GB of memory, run:
.RS 2m
$ gcloud alpha memcache instances create my\-memcache\-instance \e
\-\-region=us\-central1 \-\-node\-count=3 \-\-node\-cpu=2 \e
\-\-node\-memory=2GB
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
Instance resource \- Arguments and flags that specify the Memcached instance to
create. 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
\fB\-\-node\-count\fR=\fINODE_COUNT\fR
Number of memcache nodes in this instance. Valid values range from 1 to 20.
.TP 2m
\fB\-\-node\-cpu\fR=\fINODE_CPU\fR
Number of cpus per node in this instance. Valid values are 1 or even number
between 2\-32. Value of 1 is not supported in all regions.
.TP 2m
\fB\-\-node\-memory\fR=\fINODE_MEMORY\fR
Amount of memory allocated per node in this instance. The value must be a whole
number followed by a size unit of 'MB' for megabyte, or 'GB' for gigabyte, ie
\'3072MB' or '9GB'. The value must be between 1024MB and 307200MB.
.RE
.sp
.SH "OPTIONAL FLAGS"
.RS 2m
.TP 2m
\fB\-\-async\fR
Return immediately, without waiting for the operation in progress to complete.
.TP 2m
\fB\-\-authorized\-network\fR=\fIAUTHORIZED_NETWORK\fR
Full name of the Google Compute Engine network to which the instance is
connected. If unspecified, the default network will be used.
.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\-\-maintenance\-window\-day\fR=\fIMAINTENANCE_WINDOW_DAY\fR
The day of week when the window starts, e.g. \f5sunday\fR.
\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 (\f50\fR to \f523\fR) for the start of maintenance window, in UTC
time zone.
.TP 2m
\fB\-\-memcached\-version\fR=\fIMEMCACHED_VERSION\fR
Optional major version of Memcached software to use with the instance. If not
provided, default of "1.5" will be used. \fIMEMCACHED_VERSION\fR must be one of:
.RS 2m
.TP 2m
\fB1.5\fR
Memcached major version 1.5
.TP 2m
\fB1.6.15\fR
Memcached version 1.6.15
.RE
.sp
.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\-\-reserved\-ip\-range\-id\fR=[\fIRESERVED_IP_RANGE_ID\fR,...]
Contains the name of allocated IP address ranges associated with the private
service access connection for example, "test\-default" associated with IP range
10.0.0.0/29.
.TP 2m
\fB\-\-zones\fR=[\fIZONES\fR,...]
List of zones for the memcache nodes. The nodes will be divided equally across
the given zones up to \-\-node\-count value. If not provided, the service will
by default create nodes in all zones in the region specified by \-\-region flag.
.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/v1beta2\fR API. The full documentation for
this API can be found at: https://cloud.google.com/memorystore/
.SH "NOTES"
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation\-only early access
allowlist. These variants are also available:
.RS 2m
$ gcloud memcache instances create
.RE
.RS 2m
$ gcloud beta memcache instances create
.RE