MS is the abbreviation of Meta Service, the Compute-storage decoupled component of Doris, which provides metadata management and query services. The configuration field in DorisDisaggregatedMetaService is MS.

Simplest configuration

MS service is a stateless service and is usually deployed in active-standby mode. The simplest configuration is as follows:

  1. spec:
  2. ms:
  3. image: {msImage}
  4. replicas: 2

Among them, {msImage} is the version of the MS service you want to deploy.

Configure resources

Add resource usage restrictions for the MS service. Take the 4c 4Gi configuration as an example:

  1. spec:
  2. ms:
  3. image: {msImage}
  4. replicas: 2
  5. requests:
  6. cpu: 4
  7. memory: 4Gi
  8. limits:
  9. cpu: 4
  10. memory: 4Gi

Update the modified configuration to the [metadata management resources](/docs/3.0/install/cluster-deployment/k8s-deploy/compute-storage-decoupled/install-quickstart#Install DorisDisaggregatedMetaService). for Compute-storage decoupled that need to be deployed.

Customized configuration file

Configuration files are mounted on K8s through ConfigMap. Doris-Operator automates the configuration of mutual perception between Compute-storage decoupled components. When deploying MS services using customized configuration files, please do not configure FDB related configuration.

ConfigMap:

  1. apiVersion: v1
  2. data:
  3. doris_cloud.conf: |
  4. # // meta_service
  5. brpc_listen_port = 5000
  6. brpc_num_threads = -1
  7. brpc_idle_timeout_sec = 30
  8. http_token = greedisgood9999
  9. # // doris txn config
  10. label_keep_max_second = 259200
  11. expired_txn_scan_key_nums = 1000
  12. # // logging
  13. log_dir = ./log/
  14. # info warn error
  15. log_level = info
  16. log_size_mb = 1024
  17. log_filenum_quota = 10
  18. log_immediate_flush = false
  19. # log_verbose_modules = *
  20. # //max stage num
  21. max_num_stages = 40
  22. kind: ConfigMap
  23. metadata:
  24. name: doris-metaservice
  25. namespace: default

The MS configuration using the above ConfigMap is as follows:

  1. spec:
  2. ms:
  3. image: {msImage}
  4. configMaps:
  5. - name: doris-metaservice
  6. mountPath: /etc/doris

In actual deployment, configure the name and namespace of ConfigMap as needed, and configure the configuration information in the [Compute-storage decoupled metadata management resource](/docs/3.0/install/cluster-deployment/k8s-deploy/compute-storage-decoupled/install-quickstart#Install DorisDisaggregatedMetaService) to be deployed according to the above sample format. The startup configuration file used by the MS service is named doris_cloud.conf, so the key of the ConfigMap for mounting the startup configuration must also be doris_cloud.conf. The startup configuration must be mounted to the /etc/doris directory, that is, the mountPath is /etc/doris.

Config and install MS - 图1Tip

MS service needs to use FDB as the backend metadata storage, and the FDB service must be deployed when deploying MS service.