|
| 1 | +storage_config_generation: 0 |
| 2 | +static_erasure: mirror-3-dc |
| 3 | +host_configs: # the list of available host configurations in the cluster. |
| 4 | +- drive: |
| 5 | + - path: /dev/disk/by-partlabel/ydb_disk_1 |
| 6 | + type: SSD |
| 7 | + - path: /dev/disk/by-partlabel/ydb_disk_2 |
| 8 | + type: SSD |
| 9 | + - path: /dev/disk/by-partlabel/ydb_disk_3 |
| 10 | + type: SSD |
| 11 | + host_config_id: 1 |
| 12 | +hosts: |
| 13 | +- host: zeit-1 |
| 14 | + host_config_id: 1 |
| 15 | + walle_location: |
| 16 | + body: 1 |
| 17 | + data_center: 'zone-a' |
| 18 | + rack: '1' |
| 19 | +- host: zeit-2 |
| 20 | + host_config_id: 1 |
| 21 | + walle_location: |
| 22 | + body: 2 |
| 23 | + data_center: 'zone-b' |
| 24 | + rack: '2' |
| 25 | +- host: zeit-3 |
| 26 | + host_config_id: 1 |
| 27 | + walle_location: |
| 28 | + body: 3 |
| 29 | + data_center: 'zone-c' |
| 30 | + rack: '3' |
| 31 | +domains_config: |
| 32 | + # There can be only one root domain in a cluster. Domain name prefixes all scheme objects names, e.g. full name of a table table1 in database db1. |
| 33 | + # in a cluster with domains_config.domain.name parameter set to Root would be equal to /Root/db1/table1 |
| 34 | + domain: |
| 35 | + - name: Domain0 |
| 36 | + domain_id: 1 |
| 37 | + storage_pool_types: |
| 38 | + - kind: ssd |
| 39 | + pool_config: |
| 40 | + box_id: 1 |
| 41 | + # fault tolerance mode name - none, block-4-2, or mirror-3-dc.. |
| 42 | + # See docs for more details https://ydb.tech/en/docs/deploy/configuration/config#domains-blob |
| 43 | + erasure_species: mirror-3-dc |
| 44 | + kind: ssd |
| 45 | + geometry: |
| 46 | + realm_level_begin: 10 |
| 47 | + realm_level_end: 20 |
| 48 | + domain_level_begin: 10 |
| 49 | + domain_level_end: 256 |
| 50 | + pdisk_filter: |
| 51 | + - property: |
| 52 | + - type: SSD # device type to match host_configs.drive.type |
| 53 | + vdisk_kind: Default |
| 54 | + state_storage: |
| 55 | + - ring: |
| 56 | + node: [1, 2, 3] |
| 57 | + nto_select: 3 |
| 58 | + ssid: 1 |
| 59 | + security_config: |
| 60 | + enforce_user_token_requirement: true |
| 61 | + monitoring_allowed_sids: |
| 62 | + - "root" |
| 63 | + - "ydb-admin1@ldap" |
| 64 | + - "CN=ydb-admins,OU=demo1,DC=ydb,DC=demo@ldap" |
| 65 | + administration_allowed_sids: |
| 66 | + - "root" |
| 67 | + - "ydb-admin1@ldap" |
| 68 | + - "CN=ydb-admins,OU=demo1,DC=ydb,DC=demo@ldap" |
| 69 | + viewer_allowed_sids: |
| 70 | + - "root" |
| 71 | + - "ydb-admin1@ldap" |
| 72 | + - "CN=ydb-admins,OU=demo1,DC=ydb,DC=demo@ldap" |
| 73 | + |
| 74 | +blob_storage_config: # configuration of static blobstorage group. |
| 75 | + # YDB uses this group to store system tablets' data, like SchemeShard |
| 76 | + service_set: |
| 77 | + groups: |
| 78 | + - erasure_species: mirror-3-dc # fault tolerance mode name for the static group |
| 79 | + rings: # in mirror-3-dc must have exactly 3 rings or availability zones |
| 80 | + - fail_domains: # first record: fail domains of the static group describe where each vdisk of the static group should be located. |
| 81 | + - vdisk_locations: |
| 82 | + - node_id: zeit-1 |
| 83 | + pdisk_category: SSD |
| 84 | + path: /dev/disk/by-partlabel/ydb_disk_1 |
| 85 | + - vdisk_locations: |
| 86 | + - node_id: zeit-1 |
| 87 | + pdisk_category: SSD |
| 88 | + path: /dev/disk/by-partlabel/ydb_disk_2 |
| 89 | + - vdisk_locations: |
| 90 | + - node_id: zeit-1 |
| 91 | + pdisk_category: SSD |
| 92 | + path: /dev/disk/by-partlabel/ydb_disk_3 |
| 93 | + - fail_domains: # second ring: fail domains of the static group describe where each vdisk of the static group should be located. |
| 94 | + - vdisk_locations: |
| 95 | + - node_id: zeit-2 |
| 96 | + pdisk_category: SSD |
| 97 | + path: /dev/disk/by-partlabel/ydb_disk_1 |
| 98 | + - vdisk_locations: |
| 99 | + - node_id: zeit-2 |
| 100 | + pdisk_category: SSD |
| 101 | + path: /dev/disk/by-partlabel/ydb_disk_2 |
| 102 | + - vdisk_locations: |
| 103 | + - node_id: zeit-2 |
| 104 | + pdisk_category: SSD |
| 105 | + path: /dev/disk/by-partlabel/ydb_disk_3 |
| 106 | + - fail_domains: # third ring: fail domains of the static group describe where each vdisk of the static group should be located. |
| 107 | + - vdisk_locations: |
| 108 | + - node_id: zeit-3 |
| 109 | + pdisk_category: SSD |
| 110 | + path: /dev/disk/by-partlabel/ydb_disk_1 |
| 111 | + - vdisk_locations: |
| 112 | + - node_id: zeit-3 |
| 113 | + pdisk_category: SSD |
| 114 | + path: /dev/disk/by-partlabel/ydb_disk_2 |
| 115 | + - vdisk_locations: |
| 116 | + - node_id: zeit-3 |
| 117 | + pdisk_category: SSD |
| 118 | + path: /dev/disk/by-partlabel/ydb_disk_3 |
| 119 | + |
| 120 | +channel_profile_config: |
| 121 | + profile: |
| 122 | + - channel: |
| 123 | + - erasure_species: mirror-3-dc |
| 124 | + pdisk_category: 1 # 0=ROT, 1=SSD, 2=NVME |
| 125 | + storage_pool_kind: ssd |
| 126 | + - erasure_species: mirror-3-dc |
| 127 | + pdisk_category: 1 |
| 128 | + storage_pool_kind: ssd |
| 129 | + - erasure_species: mirror-3-dc |
| 130 | + pdisk_category: 1 |
| 131 | + storage_pool_kind: ssd |
| 132 | + profile_id: 0 |
| 133 | + |
| 134 | +interconnect_config: |
| 135 | + start_tcp: true |
| 136 | + encryption_mode: OPTIONAL |
| 137 | + path_to_certificate_file: "/opt/ydb/certs/node.crt" |
| 138 | + path_to_private_key_file: "/opt/ydb/certs/node.key" |
| 139 | + path_to_ca_file: "/opt/ydb/certs/ca.crt" |
| 140 | + |
| 141 | +grpc_config: |
| 142 | + cert: "/opt/ydb/certs/node.crt" |
| 143 | + key: "/opt/ydb/certs/node.key" |
| 144 | + ca: "/opt/ydb/certs/ca.crt" |
| 145 | + services_enabled: |
| 146 | + - legacy |
| 147 | + |
| 148 | +auth_config: |
| 149 | + use_builtin_auth: true |
| 150 | + ldap_authentication: |
| 151 | + host: "dc2016.ydb.demo" |
| 152 | + port: 389 |
| 153 | + base_dn: "OU=demo1,DC=ydb,DC=demo" |
| 154 | + |
| 155 | + bind_password: "P@$$w0rd+" |
| 156 | + search_filter: "sAMAccountName=$username" |
| 157 | + use_tls: |
| 158 | + enable: true |
| 159 | + ca_cert_file: "/etc/ssl/certs/ca-certificates.crt" |
| 160 | + cert_require: DEMAND |
| 161 | + ldap_authentication_domain: "ldap" |
| 162 | + refresh_time: "10m" |
| 163 | + |
| 164 | +table_service_config: |
| 165 | + sql_version: 1 |
| 166 | + |
| 167 | +bootstrap_config: |
| 168 | + shared_cache_config: {memory_limit: '4294967296'} |
| 169 | + |
| 170 | +feature_flags: |
| 171 | + enable_grpc_audit: false |
| 172 | + enable_get_node_labels: true |
| 173 | + enable_views: true |
| 174 | + |
| 175 | +log_config: |
| 176 | + default_level: 4 |
| 177 | + uaclient_config: |
| 178 | + uri: 'localhost:16400' |
| 179 | + log_name: main |
| 180 | + |
| 181 | +audit_config: |
| 182 | + unified_agent_backend: |
| 183 | + format: JSON |
| 184 | + log_name: audit |
| 185 | + |
| 186 | +# Actor system config is appended to the configuration file by Ansible task. |
| 187 | +# Provided here in the commented form for reference |
| 188 | +#actor_system_config: |
| 189 | +# use_auto_config: true |
| 190 | +# node_type: STORAGE # STORAGE or COMPUTE |
| 191 | +# cpu_count: 6 |
0 commit comments