milvus-logo
LFAI
Home
  • Guia de Administração

Configurar o Milvus em tempo real

O Milvus permite-lhe alterar algumas das suas configurações em tempo real.

Antes de começar

Você precisa garantir que:

  • Você tem o Birdwatcher instalado. Para mais detalhes, consulte Instalar o Birdwatcher,
  • Você tem o etcdctl instalado. Para mais detalhes, consulte Interagindo com o etcd, ou
  • Você tem outros clientes etcd, como o cliente Python, instalados.
  • Os exemplos neste guia alteram o valor de proxy.minPasswordLength para 8. Você pode substituir a chave pelas aplicáveis listadas em Itens de configuração aplicáveis.
  • Os exemplos neste guia assumem que o caminho da raiz do seu Milvus é by-dev. Todas as configurações estão listadas no caminho by-dev/config. O caminho da raiz do Milvus varia consoante a forma como o instala. Para as instâncias instaladas usando os gráficos do Helm, o caminho da raiz tem como padrão by-dev. Se você não souber o caminho da raiz, consulte Conectar-se ao etcd.

Alterar as configurações

No Milvus, proxy.minPasswordLength é definido como 6 por padrão. Para alterar este valor, pode fazer o seguinte:

$ etcdctl put by-dev/config/proxy/minPasswordLength 8
# or
$ birdwatcher -olc "#connect --etcd 127.0.0.1:2379 --rootPath=by-dev,set config-etcd --key by-dev/config/proxy/minPasswordLength --value 8"

Depois pode verificar as configurações da seguinte forma:

$ etcdctl get by-dev/config/proxy/minPasswordLength

Reverter configurações

O Milvus também lhe permite reverter as suas configurações caso o valor alterado já não se aplique.

$ etcdctl del by-dev/config/proxy/minPasswordLength 
# or 
$ birdwatcher -olc "#connect --etcd 127.0.0.1:2379 --rootPath=by-dev,remove config-etcd --key by-dev/config/proxy/minPasswordLength"

Em seguida, pode verificar as configurações da seguinte forma:

$ etcdctl get by-dev/config/proxy/minPasswordLength

Ver configurações

Em vez de visualizar o valor de um item de configuração específico, pode também listar todos eles.

$ etcdctl get --prefix by-dev/config
# or
$ birdwatcher -olc "#connect --etcd 127.0.0.1:2379 --rootPath=by-dev,show config-etcd"

Para visualizar as configurações de um nó específico:

Offline > connect --etcd ip:port 
Milvus(by-dev) > show session          # List all nodes with their server ID
Milvus(by-dev) > visit querycoord 1    # Visit a node by server ID
QueryCoord-1(ip:port) > configuration  # List the configuration of the node

Itens de configuração aplicáveis

Atualmente, é possível alterar os seguintes itens de configuração em tempo real.

Item de configuraçãoValor por defeito
pulsar.maxMessageSize5242880
common.retentionDuration86400
common.entityExpiration-1
comum.gracefulTime5000
comum.gracefulStopTimeout30
quotaAndLimits.ddl.enabledFALSO
quotaAndLimits.indexRate.enabledFALSO
quotaAndLimits.flushRate.enabledFALSO
quotaAndLimits.compactionRate.enabledFALSO
quotaAndLimits.dml.enabledFALSO
quotaAndLimits.dql.enabledFALSO
quotaAndLimits.limits.collection.maxNum64
quotaAndLimits.limitWriting.forceDenyFALSO
quotaAndLimits.limitWriting.ttProtection.enabledFALSO
quotaAndLimits.limitWriting.ttProtection.maxTimeTickDelay9223372036854775807
quotaAndLimits.limitWriting.memProtection.enabledTRUE
quotaAndLimits.limitWriting.memProtection.dataNodeMemoryLowWaterLevel0.85
cotaElimites.limitEscrita.memProtecção.dadosNodoMemóriaNívelAltoDeÁgua0.95
quotaAndLimits.limitWriting.memProtection.queryNodeMemoryLowWaterLevel0.85
quotaAndLimits.limitWriting.memProtection.queryNodeMemoryHighWaterLevel0.95
quotaAndLimits.limitWriting.diskProtection.enabledTRUE
quotaAndLimits.limitWriting.diskProtection.diskQuota+INF
quotaAndLimits.limitReading.forceDenyFALSO
quotaAndLimits.limitReading.queueProtection.enabledFALSO
quotaAndLimits.limitReading.queueProtection.nqInQueueThreshold9223372036854775807
quotaAndLimits.limitReading.queueProtection.queueLatencyThreshold+INF
quotaAndLimits.limitReading.resultProtection.enabledFALSO
quotaAndLimits.limitReading.resultProtection.maxReadResultRate+INF
quotaAndLimits.limitReading.coolOffSpeed0.9
autoIndex.enableFALSO
autoIndex.params.build""
autoIndex.params.extra""
autoIndex.params.search""
proxy.maxNameLength255
proxy.maxUsernameLength32
proxy.minPasswordLength6
proxy.maxPasswordLength256
proxy.maxFieldNum64
proxy.maxShardNum256
proxy.maxDimension32768
proxy.maxUserNum100
proxy.maxRoleNum10
queryNode.enableDiskTRUE
dataCoord.segment.diskSegmentMaxSize2048
dataCoord.compaction.enableAutoCompactionVERDADEIRO

O que vem a seguir

Traduzido porDeepLogo

Try Zilliz Cloud for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Esta página foi útil?