Skip to content
OpenClaw 不踩坑恶意 Skills ,企业需 Skills Registry:Nacos 3.2 发布Know more

Operations And Troubleshooting

Configuration operations focus on scale, release safety, history, and runtime visibility. Most operations should be performed through the console, Admin API, or Maintainer SDK. They should not run inside normal business applications.

Capacity Control

Nacos uses capacity information to protect config storage from unbounded growth.

ScopeMeaning
ClusterTotal number of formal configs in the cluster.
NamespaceNumber of formal configs in one namespace.
GroupNumber of formal configs in one group when namespace-level capacity is not used.

Capacity mainly contains three fields:

FieldDescription
quotaMaximum number of config records in this scope. 0 means the default value.
usageCurrent counted number of config records.
maxSizeMaximum content size of one config item in bytes. 0 means the default value.

Default values:

SettingDefault
defaultClusterQuota100000
defaultGroupQuota200
defaultTenantQuota200
defaultMaxSize100 * 1024 bytes
correctUsageDelay600 seconds
initialExpansionPercent100

Gray versions are publish states of existing configs. They are not counted as independent formal configs.

History And Rollback

Config publish, delete, gray publish, and gray delete are recorded in history. History helps answer:

  • Who changed the config.
  • When the change happened.
  • What content and publish type were involved.

For rollback, review the history content first and then publish it again as formal config. Do not use local dump files as the rollback source.

Dump And Local Cache

Server-side local dump is a query cache. During startup, Nacos rebuilds local service state from the persistence layer. After config changes, nodes refresh local cache through dump tasks.

Remember:

  • The database or embedded storage is the authoritative source.
  • Local dump is not authoritative.
  • If local dump lags behind, periodic dump or management repair should recover it from persistence.
  • If local disk cannot safely save dump content, runtime query correctness is affected. Treat it as a serious problem.

Admin local cache operations are for emergency repair. They should not be used as the normal synchronization mechanism.

Common Issues

SymptomWhat to check
Application does not read the new configCheck whether it listens to the correct namespaceId/groupName/dataId, receives notification, and queries again.
Only some nodes return old contentCheck whether dump has completed on those nodes, and inspect config dump logs and cluster change notifications.
Gray client does not matchCheck beta IP or tag, and confirm that grayName and the rule exist.
Config publish failsCheck parameter validation, capacity limit, auth, config change plugins, and content size.
List query is slowCheck search scope, page size, database health, and nacos.config.search.* settings.
Local and server content differCheck client failover files, snapshots, and server dump state.

Production Advice

  • Keep config publish permissions in the console, release platform, or operation tools.
  • Gray release high-risk changes before formal publish.
  • Keep clear change notes and approval records for important configs.
  • Monitor config push, dump tasks, database health, and config subscriber count.
  • Regularly clean unused configs, long-running gray versions, and unused namespaces.