Skip to content

Commit

Permalink
Add docs for sameness groups with resolvers. (#17851)
Browse files Browse the repository at this point in the history
  • Loading branch information
hashi-derek committed Jun 23, 2023
1 parent 2e2cbc1 commit 94eb36b
Showing 1 changed file with 51 additions and 5 deletions.
56 changes: 51 additions & 5 deletions website/content/docs/connect/config-entries/service-resolver.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ The following list outlines field hierarchy, language-specific data types, and r
- [`ServiceSubset`](#redirect-servicesubset): string
- [`Namespace`](#redirect-namespace): string <EnterpriseAlert inline />
- [`Partition`](#redirect-partition): string | `default` <EnterpriseAlert inline />
- [`SamenessGroup`](#redirect-samenessgroup): string <EnterpriseAlert inline />
- [`Datacenter`](#redirect-datacenter): list
- [`Peer`](#redirect-peer): string
- [`Failover`](#failover): map
- [`Service`](#failover-service): string
- [`ServiceSubset`](#failover-servicesubset): string
- [`Namespace`](#failover-namespace): string <EnterpriseAlert inline />
- [`SamenessGroup`](#failover-samenessgroup): string <EnterpriseAlert inline />
- [`Datacenters`](#failover-datacenters): list
- [`Targets`](#failover-targets): list
- [`Service`](#failover-targets-service): string
Expand Down Expand Up @@ -87,12 +89,14 @@ The following list outlines field hierarchy, language-specific data types, and r
- [`serviceSubset`](#spec-redirect-servicesubset): string
- [`namespace`](#spec-redirect-namespace): string <EnterpriseAlert inline />
- [`partition`](#spec-redirect-partition): string <EnterpriseAlert inline />
- [`samenessGroup`](#spec-redirect-samenessgroup): string <EnterpriseAlert inline />
- [`datacenter`](#spec-redirect-datacenter): string
- [`peer`](#spec-redirect-peer): string
- [`failover`](#spec-failover): map
- [`service`](#spec-failover-service): string
- [`serviceSubset`](#spec-failover-servicesubset): string
- [`namespace`](#spec-failover-namespace): string <EnterpriseAlert inline />
- [`samenessGroup`](#spec-failover-samenessgroup): string <EnterpriseAlert inline />
- [`datacenters`](#spec-failover-datacenters): string
- [`targets`](#spec-failover-targets): list
- [`service`](#spec-failover-targets-service): string
Expand Down Expand Up @@ -157,11 +161,12 @@ Redirect = {
ServiceSubset = "<destination-subset>"
Namespace = "<destination-namespace>"
Partition = "<destination-partition>"
SamenessGroup = "<destination-sameness-group>"
Datacenter = "<destination-datacenter>"
Peer = "<destination-peer>"
}
Failover = { ## requires at least one of the following: Service, ServiceSubset, Namespace, Targets, Datacenters
Failover = { ## requires at least one of the following: Service, ServiceSubset, Namespace, Targets, Datacenters, SamenessGroup
<local-subset-name> = {
Targets = [
{ Service = "<destination-service>" },
Expand Down Expand Up @@ -239,11 +244,12 @@ LoadBalancer = {
"ServiceSubset":"<destination-subset>",
"Namespace":"<destination-namespace>",
"Partition":"<destination-partition>",
"SamenessGroup":"<destination-sameness-group>",
"Datacenter":"<destination-datacenter>",
"Peer":"<destination-peer>"
},

"Failover":{ // requires at least one of the following": Service, ServiceSubset, Namespace, Targets, Datacenters
"Failover":{ // requires at least one of the following": Service, ServiceSubset, Namespace, Targets, Datacenters, SamenessGroup
"<local=subset-name>":{
"Targets":[
{"Service":"<destination-service>"},
Expand Down Expand Up @@ -314,8 +320,9 @@ spec:
servicesubset: <subsetName>
namespace: <namespaceName>
partition: <partitionName>
samenessGroup: <samenessGroupName>
peer: <peerName>
failover: # requires at least one of the following: service, serviceSubset, namespace, targets, datacenters
failover: # requires at least one of the following: service, serviceSubset, namespace, targets, datacenters, samenessGroup
<localSubsetName>:
targets:
- service: <serviceName>
Expand Down Expand Up @@ -465,6 +472,7 @@ Specifies redirect instructions for local service traffic so that services deplo
- [`ServiceSubset`](#redirect-servicesubset)
- [`Namespace`](#redirect-namespace)
- [`Partition`](#redirect-partition)
- [`SamenessGroup`](#redirect-samenessgroup)
- [`Datacenter`](#redirect-datacenter)
- [`Peer`](#redirect-peer)

Expand Down Expand Up @@ -504,6 +512,14 @@ Specifies the admin partition at the redirect’s destination that resolves loca
- Default: None
- Data type: String

### `Redirect{}.SamenessGroup` <EnterpriseAlert inline />

Specifies the sameness group at the redirect’s destination that resolves local upstream requests.

#### Values

- Default: None
- Data type: String

### `Redirect{}.Datacenter`

Expand All @@ -529,7 +545,7 @@ Specifies controls for rerouting traffic to an alternate pool of service instanc

This parameter is a map, and its key is the name of the local service subset that resolves to another location when it fails. You can specify a `"*"` wildcard to apply failovers to any subset.

`Service`, `ServiceSubset`, `Namespace`, `Targets`, and `Datacenters` cannot all be empty at the same time.
`Service`, `ServiceSubset`, `Namespace`, `Targets`, `SamenessGroup`, and `Datacenters` cannot all be empty at the same time.

#### Values

Expand All @@ -538,6 +554,7 @@ This parameter is a map, and its key is the name of the local service subset tha
- [`Service`](#failover-service)
- [`ServiceSubset`](#failover-servicesubset)
- [`Namespace`](#failover-namespace)
- [`SamenessGroup`](#failover-samenessgroup)
- [`Datacenters`](#failover-datacenters)
- [`Targets`](#failover-targets)

Expand Down Expand Up @@ -568,6 +585,15 @@ Specifies the namespace at the failover location where the failover services are
- Default: None
- Data type: String

### `Failover{}.SamenessGroup` <EnterpriseAlert inline />

Specifies the sameness group at the failover location where the failover services are deployed.

#### Values

- Default: None
- Data type: String

### `Failover{}.Datacenters`

Specifies an ordered list of datacenters at the failover location to attempt connections to during a failover scenario. When Consul cannot establish a connection with the first datacenter in the list, it proceeds sequentially until establishing a connection with another datacenter.
Expand Down Expand Up @@ -907,6 +933,7 @@ Specifies redirect instructions for local service traffic so that services deplo
- [`serviceSubset`](#spec-redirect-servicesubset)
- [`namespace`](#spec-redirect-namespace)
- [`partition`](#spec-redirect-partition)
- [`samenessGroup`](#spec-redirect-samenessgroup)
- [`datacenter`](#spec-redirect-datacenter)
- [`peer`](#spec-redirect-peer)

Expand Down Expand Up @@ -946,6 +973,15 @@ Specifies the admin partition at the redirect’s destination that resolves loca
- Default: None
- Data type: String

### `spec.redirect.samenessGroup` <EnterpriseAlert inline />

Specifies the sameness group at the redirect’s destination that resolves local upstream requests.

#### Values

- Default: None
- Data type: String


### `spec.redirect.datacenter`

Expand All @@ -971,7 +1007,7 @@ Specifies controls for rerouting traffic to an alternate pool of service instanc

This parameter is a map, and its key is the name of the local service subset that resolves to another location when it fails. You can specify a `"*"` wildcard to apply failovers to any subset.

`service`, `serviceSubset`, `namespace`, `targets`, and `datacenters` cannot all be empty at the same time.
`service`, `serviceSubset`, `namespace`, `targets`, `samenessGroup`, and `datacenters` cannot all be empty at the same time.

#### Values

Expand All @@ -980,6 +1016,7 @@ This parameter is a map, and its key is the name of the local service subset tha
- [`service`](#spec-failover-service)
- [`serviceSubset`](#spec-failover-servicesubset)
- [`namespace`](#spec-failover-namespace)
- [`samenessGroup`](#spec-failover-samenessgroup)
- [`datacenters`](#spec-failover-datacenters)
- [`targets`](#spec-failover-targets)

Expand Down Expand Up @@ -1010,6 +1047,15 @@ Specifies the namespace at the failover location where the failover services are
- Default: None
- Data type: String

### `spec.failover.samenessGroup` <EnterpriseAlert inline />

Specifies the sameness group at the failover location where the failover services are deployed.

#### Values

- Default: None
- Data type: String

### `spec.failover.datacenters`

Specifies an ordered list of datacenters at the failover location to attempt connections to during a failover scenario. When Consul cannot establish a connection with the first datacenter in the list, it proceeds sequentially until establishing a connection with another datacenter.
Expand Down

0 comments on commit 94eb36b

Please sign in to comment.