Resource: Instance
An Instance is a computing unit that an end customer can connect to. It's the main unit of computing resources in AlloyDB. NEXT ID: 19
JSON representation |
---|
{ "name": string, "displayName": string, "uid": string, "createTime": string, "updateTime": string, "deleteTime": string, "labels": { string: string, ... }, "state": enum ( |
Fields | |
---|---|
name |
Output only. The name of the instance resource with the format: * projects/{project}/locations/{region}/clusters/{clusterId}/instances/{instanceId} where the cluster and instance ID segments should satisfy the regex expression "a-z?", e.g. 1-63 characters of lowercase letters, numbers, and dashes, starting with a letter, and ending with a letter or number. For more details see https://google.aip.dev/122. The prefix of the instance resource name is the name of the parent resource: * projects/{project}/locations/{region}/clusters/{clusterId} |
displayName |
User-settable and human-readable display name for the Instance. |
uid |
Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted. |
createTime |
Output only. Create time stamp A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. Update time stamp A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
deleteTime |
Output only. Delete time stamp A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
labels |
Labels as key value pairs An object containing a list of |
state |
Output only. The current serving state of the instance. |
instanceType |
Required. The type of the instance. Specified at creation time. |
machineConfig |
Configurations for the machines that host the underlying database engine. |
availabilityType |
Availability type of an Instance. Defaults to REGIONAL for both primary and read instances. Note that primary and read instances can have different availability types. |
gceZone |
The Compute Engine zone that the instance should serve from, per https://cloud.google.com/compute/docs/regions-zones This can ONLY be specified for ZONAL instances. If present for a REGIONAL instance, an error will be thrown. If this is absent for a ZONAL instance, instance is created in a random zone with available capacity. |
databaseFlags |
Database flags. Set at instance level. * They are copied from primary instance on read instance creation. * Read instances can set new or override existing flags that are relevant for reads, e.g. for enabling columnar cache on a read instance. Flags set on read instance may or may not be present on primary. An object containing a list of |
readPoolConfig |
Read pool specific config. |
ipAddress |
Output only. The IP address for the Instance. This is the connection endpoint for an end-user application. |
reconciling |
Output only. Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of Instance does not match the user's intended state, and the service is actively updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance. |
etag |
For Resource freshness validation (https://google.aip.dev/154) |
annotations |
Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128 An object containing a list of |
State
Instance State
Enums | |
---|---|
STATE_UNSPECIFIED |
The state of the instance is unknown. |
READY |
The instance is active and running. |
STOPPED |
The instance is stopped. Instance name and IP resources are preserved. |
CREATING |
The instance is being created. |
DELETING |
The instance is being deleted. |
MAINTENANCE |
The instance is down for maintenance. |
FAILED |
The creation of the instance failed or a fatal error occurred during an operation on the instance. Note: Instances in this state would tried to be auto-repaired. And Customers should be able to restart, update or delete these instances. |
BOOTSTRAPPING |
Index 7 is used in the producer apis for ROLLED_BACK state. Keeping that index unused in case that state also needs to exposed via consumer apis in future. The instance has been configured to sync data from some other source. |
InstanceType
Type of an Instance
Enums | |
---|---|
INSTANCE_TYPE_UNSPECIFIED |
The type of the instance is unknown. |
PRIMARY |
PRIMARY instances support read and write operations. |
READ_POOL |
READ POOL instances support read operations only. Each read pool instance consists of one or more homogeneous nodes. * Read pool of size 1 can only have zonal availability. * Read pools with node count of 2 or more can have regional availability (nodes are present in 2 or more zones in a region). |
MachineConfig
MachineConfig describes the configuration of a machine.
JSON representation |
---|
{ "cpuCount": integer } |
Fields | |
---|---|
cpuCount |
The number of CPU's in the VM instance. |
AvailabilityType
The Availability type of an instance. Potential values:
ZONAL: The instance serves data from only one zone. Outages in that zone affect instance availability.
REGIONAL: The instance can serve data from more than one zone in a region (it is highly available).
Enums | |
---|---|
AVAILABILITY_TYPE_UNSPECIFIED |
This is an unknown Availability type. |
ZONAL |
Zonal available instance. |
REGIONAL |
Regional (or Highly) available instance. |
ReadPoolConfig
Configuration for a read pool instance.
JSON representation |
---|
{ "nodeCount": integer } |
Fields | |
---|---|
nodeCount |
Read capacity, i.e. number of nodes in a read pool instance. |
Methods |
|
---|---|
|
Creates a new Instance in a given project and location. |
|
Deletes a single Instance. |
|
Forces a Failover for a highly available instance. |
|
Gets details of a single Instance. |
|
Get instance metadata used for a connection. |
|
Lists Instances in a given project and location. |
|
Updates the parameters of a single Instance. |
|
Restart an Instance in a cluster. |