Specify the initial configuration for an application profile.
More...
#include <google/cloud/bigtable/app_profile_config.h>
Specify the initial configuration for an application profile.
◆ AppProfileConfig()
google::cloud::bigtable::AppProfileConfig::AppProfileConfig |
( |
google::bigtable::admin::v2::CreateAppProfileRequest |
proto | ) |
|
|
inlineexplicit |
◆ as_proto() [1/2]
google::bigtable::admin::v2::CreateAppProfileRequest && google::cloud::bigtable::AppProfileConfig::as_proto |
( |
| ) |
&& |
|
inline |
◆ as_proto() [2/2]
google::bigtable::admin::v2::CreateAppProfileRequest const & google::cloud::bigtable::AppProfileConfig::as_proto |
( |
| ) |
const & |
|
inline |
◆ MultiClusterUseAny()
static AppProfileConfig google::cloud::bigtable::AppProfileConfig::MultiClusterUseAny |
( |
std::string |
profile_id, |
|
|
std::vector< std::string > |
cluster_ids = {} |
|
) |
| |
|
static |
Create an AppProfile that uses multi-cluster routing.
Read/write requests are routed to the nearest cluster in the instance, and will fail over to the nearest cluster that is available in the event of transient errors or delays. Clusters in a region are considered equidistant. Choosing this option sacrifices read-your-writes consistency to improve availability.
- Parameters
-
profile_id | The unique name of the AppProfile. |
cluster_ids | The set of clusters to route to. The order is ignored; clusters will be tried in order of distance. If left empty, all clusters are eligible. |
◆ set_description()
AppProfileConfig & google::cloud::bigtable::AppProfileConfig::set_description |
( |
std::string |
description | ) |
|
|
inline |
◆ set_etag()
AppProfileConfig & google::cloud::bigtable::AppProfileConfig::set_etag |
( |
std::string |
etag | ) |
|
|
inline |
◆ set_ignore_warnings()
AppProfileConfig & google::cloud::bigtable::AppProfileConfig::set_ignore_warnings |
( |
bool |
value | ) |
|
|
inline |
◆ SingleClusterRouting()
static AppProfileConfig google::cloud::bigtable::AppProfileConfig::SingleClusterRouting |
( |
std::string |
profile_id, |
|
|
std::string |
cluster_id, |
|
|
bool |
allow_transactional_writes = false |
|
) |
| |
|
static |
Create an AppProfile that uses single cluster routing.
Unconditionally routes all read/write requests to a specific cluster. This option preserves read-your-writes consistency but does not improve availability.
- Parameters
-
profile_id | The unique name of the AppProfile. |
cluster_id | The cluster to which read/write requests are routed. |
allow_transactional_writes | Whether or not CheckAndMutateRow and ReadModifyWriteRow requests are allowed by this app profile. It is unsafe to send these requests to the same table/row/column in multiple clusters. |