mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Add support for replicas option when deploying MIAA (#14758)
This commit is contained in:
@@ -138,7 +138,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"os.environ[\"AZDATA_USERNAME\"] = sql_username\n",
|
"os.environ[\"AZDATA_USERNAME\"] = sql_username\n",
|
||||||
"os.environ[\"AZDATA_PASSWORD\"] = os.environ[\"AZDATA_NB_VAR_SQL_PASSWORD\"]\n",
|
"os.environ[\"AZDATA_PASSWORD\"] = os.environ[\"AZDATA_NB_VAR_SQL_PASSWORD\"]\n",
|
||||||
"cmd = f'azdata arc sql mi create -n {sql_instance_name} -scd {sql_storage_class_data} -scl {sql_storage_class_logs}{cores_request_option}{cores_limit_option}{memory_request_option}{memory_limit_option}'\n",
|
"cmd = f'azdata arc sql mi create -n {sql_instance_name} -scd {sql_storage_class_data} -scl {sql_storage_class_logs} --replicas {sql_replicas}{cores_request_option}{cores_limit_option}{memory_request_option}{memory_limit_option}'\n",
|
||||||
"out=run_command()"
|
"out=run_command()"
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
|||||||
@@ -900,6 +900,21 @@
|
|||||||
{
|
{
|
||||||
"title": "%arc.sql.instance.settings.section.title%",
|
"title": "%arc.sql.instance.settings.section.title%",
|
||||||
"fields": [
|
"fields": [
|
||||||
|
{
|
||||||
|
"type": "options",
|
||||||
|
"label": "%arc.sql.replicas.label%",
|
||||||
|
"description": "%arc.sql.replicas.description%",
|
||||||
|
"required": true,
|
||||||
|
"variableName": "AZDATA_NB_VAR_SQL_REPLICAS",
|
||||||
|
"options": {
|
||||||
|
"values": [
|
||||||
|
"1",
|
||||||
|
"3"
|
||||||
|
],
|
||||||
|
"defaultValue": "1",
|
||||||
|
"optionsType": "radio"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"label": "%arc.storage-class.data.label%",
|
"label": "%arc.storage-class.data.label%",
|
||||||
"description": "%arc.sql.storage-class.data.description%",
|
"description": "%arc.sql.storage-class.data.description%",
|
||||||
|
|||||||
@@ -84,6 +84,8 @@
|
|||||||
"arc.sql.invalid.instance.name": "Instance name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, and be 13 characters or fewer in length.",
|
"arc.sql.invalid.instance.name": "Instance name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, and be 13 characters or fewer in length.",
|
||||||
"arc.storage-class.dc.label": "Storage Class",
|
"arc.storage-class.dc.label": "Storage Class",
|
||||||
"arc.sql.storage-class.dc.description": "The storage class to be used for all data and logs persistent volumes for all data controller pods that require them.",
|
"arc.sql.storage-class.dc.description": "The storage class to be used for all data and logs persistent volumes for all data controller pods that require them.",
|
||||||
|
"arc.sql.replicas.label": "Replicas",
|
||||||
|
"arc.sql.replicas.description": "The number of replicas to be deployed for high availability purpose",
|
||||||
"arc.storage-class.data.label": "Storage Class (Data)",
|
"arc.storage-class.data.label": "Storage Class (Data)",
|
||||||
"arc.sql.storage-class.data.description": "The storage class to be used for data (.mdf)",
|
"arc.sql.storage-class.data.description": "The storage class to be used for data (.mdf)",
|
||||||
"arc.postgres.storage-class.data.description": "The storage class to be used for data persistent volumes",
|
"arc.postgres.storage-class.data.description": "The storage class to be used for data persistent volumes",
|
||||||
|
|||||||
Reference in New Issue
Block a user