Apusic文档中心
首页
  • 应用服务器 AAS
  • 负载均衡器 ALB
  • 分布式消息队列 ADMQ
  • 分布式缓存 AMDC
  • 分布式配置中心 ADCC
  • Java开发工具包软件 AJDK
  • 搜索引擎 ASE
  • 中间件云平台 ACP
  • 统一管理平台 AUMP
  • 云原生中间件管理 ACMP
  • DevOps平台 ADOP
  • 许可授权中心 ACLS
  • Copilot智能问答系统 ACS
  • 监控平台 AMP
  • 智能日志 AILP
  • 应用性能管理 AAPM
  • 智能告警 AAlarm
  • 金蝶Apusic AI 极光
  • 主数据管理 AMDM
  • 数据交换平台 ADXP
  • 企业服务总线 AESB
  • 数据智脑 ADPR
  • 服务治理 ASGP
  • 统一身份管理 AIDM
  • 标准模板
  • Markdown教程 (opens new window)
  • VuePress官方社区 (opens new window)
  • 帮助
贡献文档 (opens new window)
首页
  • 应用服务器 AAS
  • 负载均衡器 ALB
  • 分布式消息队列 ADMQ
  • 分布式缓存 AMDC
  • 分布式配置中心 ADCC
  • Java开发工具包软件 AJDK
  • 搜索引擎 ASE
  • 中间件云平台 ACP
  • 统一管理平台 AUMP
  • 云原生中间件管理 ACMP
  • DevOps平台 ADOP
  • 许可授权中心 ACLS
  • Copilot智能问答系统 ACS
  • 监控平台 AMP
  • 智能日志 AILP
  • 应用性能管理 AAPM
  • 智能告警 AAlarm
  • 金蝶Apusic AI 极光
  • 主数据管理 AMDM
  • 数据交换平台 ADXP
  • 企业服务总线 AESB
  • 数据智脑 ADPR
  • 服务治理 ASGP
  • 统一身份管理 AIDM
  • 标准模板
  • Markdown教程 (opens new window)
  • VuePress官方社区 (opens new window)
  • 帮助
贡献文档 (opens new window)
文档中心
  • 金蝶Apusic应用服务器

  • 金蝶Apusic负载均衡器

  • 金蝶Apusic分布式消息队列

  • 金蝶Apusic分布式缓存

    • 产品白皮书
    • 产品发布历史
    • Product White Paper
    • 產品白皮書
    • V2.0.6

    • V2.0.5

      • 发版说明
      • 产品简介
      • 功能与技术规格
      • 安装手册
      • 快速使用手册
      • 管控台用户手册
      • 缓存核心用户手册
      • 开发手册
      • 迁移手册
      • 运维手册
      • 性能优化手册
      • English

        • Release Notes
        • Product Overview
        • Features and Technical Specifications
        • Installation Guide
        • Quick Start Guide
        • Console User Manual
        • Cache Core User Manual
        • Development Guide
        • Migration Guide
        • Operations Guide
        • Performance Tuning Guide
      • 繁體中文

    • V2.0.4

    • V2.0.3

    • v2.0.2

    • v2.0.1_EN

    • V2.0.1

    • v2.0

  • 金蝶Apusic分布式配置中心

  • 金蝶Apusic Java开发工具包软件

  • 金蝶Apusic全文检索

Console User Manual

# Preface

This document is the user manual for the Apusic In-Memory Data Cache (AMDC) V2.0.5 console product, detailing the features, configuration methods, and management operations of the AMDC Web console.

This document is based on the current amdc-console code and the actual deployment environment (http://172.17.47.213:3001/), using the AMDC administrator role for screenshots and feature verification; the original screenshots and text are retained, with only path descriptions that do not match the actual menus adjusted. Other roles (system administrator, security administrator, audit administrator, tenant administrator) may have different menu scopes; please refer to the actual logged-in role. If any images differ from the current interface, see the "List of Images to Be Confirmed" at the end of this document.

# Target Audience

This document is intended for AMDC product operations engineers, IT system operations engineers, development engineers, and other personnel.

# Related Documentation

For more information about AMDC V2.0.5, please refer to the following AMDC V2.0.5 product manual documentation set:

No. Document Description
1 Apusic In-Memory Data Cache V2.0.5 Quick Start Guide A brief introduction on how to quickly get started with AMDC.
2 Apusic In-Memory Data Cache V2.0.5 Installation Guide Detailed introduction on how to install AMDC on various operating systems, AMDC service start/stop operations, and the product registration process.
3 Apusic In-Memory Data Cache V2.0.5 Cache Core User Manual Detailed introduction on how to use, configure, and manage AMDC features and supporting tools.
4 Apusic In-Memory Data Cache V2.0.5 Console User Manual Detailed instructions on using and operating AMDC console features.
5 Apusic In-Memory Data Cache V2.0.5 Development Guide Detailed instructions for developing AMDC client applications using various programming languages.
6 Apusic In-Memory Data Cache V2.0.5 Migration Guide Detailed instructions for migrating AMDC from historical versions to V2.0.5, as well as migrating from Redis to AMDC.
7 Apusic In-Memory Data Cache V2.0.5 Operations Guide Detailed instructions for AMDC monitoring, operations, security hardening, and other operational procedures.
8 Apusic In-Memory Data Cache V2.0.5 Performance Tuning Guide Detailed instructions for AMDC performance tuning.

# Technical Support

AMDC products provide comprehensive technical support services. You can obtain technical support through the following channels:

  • Website: www.apusic.com

  • Phone: 400-855-5800

  • Email: support@apusic.com

  • Kingdee Cloud Community: https://vip.kingdee.com/?productId=73&productLineId=14&lang=zh-CN

When requesting technical support, please provide the following information:

  1. Your name

  2. Company information and contact details

  3. Operating system and version

  4. Product version number

  5. Detailed information including logs, screenshots, etc. of any exceptions or errors

# Introduction

Apusic In-Memory Data Cache Software (Apusic In-Memory Data Cache, abbreviated as AMDC) is a distributed cache software that is fully applicable to a wide range of scenarios, with high throughput and data security. It provides secure and reliable cache support capabilities for large-scale, high-concurrency, and highly available critical applications; and is compatible with the Redis protocol and persistent data files, enabling simple, fast, and smooth replacement of Redis.

# Feature List

# Console

Feature Description
Multi-tenant management Uses a multi-tenant model to isolate data for different businesses or management groups.
Permission control Provides feature usage permission control to improve console security.
Multi-cluster management Supports centralized management of multiple clusters, node start/stop, node elastic scaling, configuration, and other features.
Monitoring and alerting Provides cache monitoring, detects cache status, and sends alert notifications when the cache core is abnormal.
Data analysis Provides cache data analysis features such as big keys, hot keys, and slowlog.
Automatic deployment Implements automatic deployment of the AMDC data cache engine; the system completes the whole process automatically, faster and simpler.
Visual scaling Provides visual scale-out/node removal operations without tedious command operations.
Deployment tasks Visualizes the deployment/scaling process; progress and status can be viewed in the task list.

# Related Concepts

Term Meaning Usage Notes
Master node Stores data, responsible for data read/write and data synchronization The default mode of AMDC is standalone mode; in standalone mode, the master node is in standalone mode
Slave node Replicates data from the master node, participates in data synchronization (read-only) Slave nodes participate in data synchronization (read-only); when the master node fails, a slave node can be automatically switched to master; when the master node recovers, the slave node automatically switches back to slave.
Sentinel Monitors master and slave nodes, responsible for master failover and master-slave synchronization Sentinel mode: when the master node goes down, it automatically switches a slave node; when a slave node goes down, it automatically switches to the master node.
Cluster A computer service system composed of multiple mutually independent computers In this document, master-slave/Sentinel/cluster modes can all be considered clusters; cluster mode specifically refers to the mode where multiple master nodes store data in shards.

# Complete Process for Bringing a New Service Online

The following demonstrates a complete service onboarding, upgrade, and migration operation process from the perspective of an AMDC administrator. Following this process, an implementation engineer unfamiliar with the console can independently complete deployment, verification, upgrade, and migration.

# Log In to the Console

  1. Open a browser and visit http://<serverIP>:3001/ to enter the login page.
  2. Enter the account amdc_admin and the corresponding password:
    • When the console starts for the first time, it automatically generates initial passwords for all preset administrator accounts (including amdc_admin, three-role administrators, and tenant administrators) and writes them to the ./resource/.initial_passwords file under the installation directory.
    • Open this file and find the 12-digit random password after amdc_admin: as the first login password.
    • After the first successful login, the system will force you to change the password according to the current password policy; you can only enter the console main interface after completing the change. Logging in again after the password expires will also trigger a forced change.
  3. Click [Login] to enter the console homepage.

Login page

Note: All subsequent operations in this document are based on the AMDC administrator role. Other roles (system administrator, security administrator, audit administrator, tenant administrator) may have different menu scopes; please refer to the actual logged-in role.


# 1. Resource Preparation

Before deploying services, you must first prepare the installation package, License, machines, and configuration templates in [Resource Management].

# 1.1 Add and Upload the Installation Package

  1. Go to the left menu [Resource Management] > [Package Management].
  2. Click the [Upload] button in the upper right corner and select the AMDC installation package file of the target version (e.g., AMDC-V2.0.5-xxxx-amd64.tar.gz).
  3. Click [OK] to complete the upload.

Package management

# 1.2 Upload the License

  1. Go to the left menu [Resource Management] > [Certificate Management].
  2. Click the [Upload] button and select valid License files; multiple files can be uploaded at the same time.
  3. After uploading, the system will automatically parse them; invalid Licenses cannot be saved.

License management

# 1.3 Add Target Machines

  1. Go to the left menu [Resource Management] > [Machine Management].
  2. Click the [+] button next to the machine group on the left to create a machine group first.
  3. Select the machine group, click the [Add] button in the upper left, and fill in the remote server information:
Parameter Example Value Description
Username root Username for logging in to the remote machine
Password - Password for logging in to the remote machine
SSH Port 22 Remote SSH port
Host 172.17.47.213 Remote machine IP
Remarks - Optional
  1. Confirm that the target machine connection status is normal before proceeding with subsequent deployment.

Note: The same machine group can only contain machines with the same chip architecture; automatic deployment requires the target machines to have the tar and ss commands.

Machine management

# 1.4 Confirm Configuration Templates

  1. Go to the left menu [Resource Management] > [Configuration Templates].
  2. Confirm that the cache core configuration template and the Sentinel configuration template (if using Sentinel mode) are available.
  3. If customization is needed, you can modify them here; non-public parameters related to IP and port will not take effect.

Configuration templates


# 2. Automatically Deploy a New Service

After resource preparation is complete, go to [Deployment Management] > [Automatic Deployment] and complete the service deployment in a 4-step wizard.

Automatic deployment basic configuration

# 2.1 Basic Configuration

Fill in the following in the [Basic Configuration] step:

  • Service Name: A unique identifier; only supports letters, digits, underscores, and hyphens, no more than 24 characters.
  • Deployment Mode: Select standalone / master-slave / Sentinel / cluster / pre-generated nodes.
  • Installation Package: Select an uploaded installation package.
  • Installation Directory: e.g., /data/looper; nodes are actually located at {seat}/{port}.
  • AMDC Password: The cache core management password; you can click the settings button to configure complexity rules.
  • Auto-start on Boot: Whether to run automatically when the system starts.
  • sudo: Whether to use sudo privileges to execute installation commands.

Automatic deployment other settings

# 2.2 Topology Configuration

  1. Select [Automatic] or [Manual] topology mode:
    • Automatic: The system automatically assigns ports and node roles; you only need to select machines and licenses.
    • Manual: Configure the machine, port, role, and license for each node.
  2. Configure the port range (default 6359–65535) and the number of nodes.
  3. In the [Machines and Licenses] area, select the target machines and select a License for each machine.

Note: All machines must be in the same machine group; non-Sentinel nodes must have a license selected.

Automatic deployment topology configuration

# 2.3 Configuration Templates

Select the cache core configuration template; if the deployment mode is Sentinel, you also need to select the Sentinel configuration template.

# 2.4 Confirm Deployment

  1. After confirming that the deployment information is correct, click [Execute Task] to deploy immediately, or click [Save Task] to save it for later execution.
  2. During deployment, you can go to [Deployment Management] > [Deployment Tasks] to view the task status.
  3. Wait for the task status to change to "Completed".

Deployment tasks


# 3. Service Verification and Monitoring

After deployment is complete, go to [Deployment Management] > [Service List] to view the newly created service.

Service list

  1. Click the service name to enter the service details.
  2. Click [Monitoring] to view cluster running metrics (memory, QPS, connections, etc.).

Service monitoring

  1. Click [Analysis] to perform data analysis such as big keys, hot keys, and slowlog.

Data analysis

  1. Click the [Command Line] button at the top to execute AMDC commands to verify data write/read.

# 4. Service Upgrade

When you need to upgrade to a new version:

  1. Upload the new version installation package in [Resource Management] > [Package Management].
  2. Enter the target service details, click [Upgrade/Rollback] > [Upgrade] at the top to open the "Cluster Upgrade" drawer.
  3. Carefully read the upgrade notes:
    • The upgrade will stop the entire cluster and replace the binaries; the cluster is unavailable during this period.
    • If the upgrade fails, the system will automatically roll back from the backup to the pre-upgrade version.
    • Only same-version or higher-version upgrades are supported.
    • Node data is automatically backed up before the upgrade; please ensure that each node has sufficient disk space.
  4. Select the installation package to upgrade to in the list, and click [Confirm Upgrade].
  5. Wait for the upgrade task to complete; you can observe the status in [Deployment Management] > [Deployment Tasks] or the monitoring center.

Cluster upgrade


# 5. Smooth Migration (Optional)

If you need to migrate the service to new hardware or a new cluster:

  1. Enter the target service details, click [Cluster Operations] > [Smooth Migration] at the top to open the "Cluster Migration" pop-up window.
  2. In the [Fill In Target Information] step, click [Create Target Node] to create target nodes through the automatic deployment wizard; after creation, the system will automatically fill in the target IP/Port/password.
  3. Click [Next] to enter [Confirm Migration] and read the migration risk notes:
    • During migration, the source cluster will have a brief write freeze (about 30 seconds).
    • After migration, the business access IP/port will change.
    • In Sentinel mode, Sentinel nodes do not participate in migration; check the Sentinel configuration after migration.
  4. After confirming that the information is correct, click [Confirm Migration]; the system will automatically complete incremental synchronization and switchover.
  5. After the switchover is complete, update the client connection configuration in a timely manner.

Smooth migration


# 6. Refresh Nodes

After an upgrade or migration, if the node information displayed on the console is inconsistent with the actual cluster:

  1. Enter the target service details, click [Cluster Operations] > [Refresh Nodes] at the top.
  2. In the pop-up window, view the node change comparison result (current recorded node count, actual detected node count, change description).
  3. Click [Confirm Refresh] to synchronize node metadata.

Refresh nodes


# 7. Daily Operations

  • Alerts: Configure notification methods and thresholds in [Alerts] > [Alarm Channels]/[Alarm Rules].
  • Log rotation: Go to Service Details > [Cluster Operations] > [Log Rotation] to configure log retention days and single-file size limits.
  • Backup and recovery: Go to Service Details > [Data Management] to perform data backups regularly and perform recovery when necessary.
  • Scale out/scale in: Enter the service details, click [Scale Out] to add nodes; select a node and reduce nodes via [Node Operations] > [Remove].

# Environment Preparation and Resource Management

Before creating or operating AMDC services, you need to prepare the following resources in [Resource Management].

# Machine Management

Go to [Resource Management] > [Machine Management]. The machine management page provides entries for adding, editing, and deleting machines. The machine information required for automatic deployment is created here.

login

# Add a Machine

Go to [Resource Management] > [Machine Management]. A machine group must exist before you can add machines, and the same machine group can only contain machines with the same chip architecture. Click the [+] button next to the machine group on the left to add a machine group; after selecting the machine group, click the [Add] button in the upper left and fill in the machine information.

Note: Only servers with normal connections can be added, so please confirm the connection status of the target machine.

Parameter Meaning
Username Username for logging in to the remote machine, e.g., root
Password Password for logging in to the remote machine
SSH Port Port for logging in to the remote machine, e.g., 22
Host Address of the remote machine, e.g., 192.168.x.x (example IP; replace with the actual IP)
Remarks Can be empty

login

login

# Delete Machines

Click [Resource Management] > [Machine Management] to enter the machine management page, check the machines to delete, and click the [Delete] button on the right side of the machine list to delete the machines in the current row; batch deletion is supported.

# Edit a Machine

Click [Resource Management] > [Machine Management] to enter the machine management page, check the machine to edit, and click the [Edit] button on the right side of the machine list to edit the machine information in the current row.

# Resource Management

Resource management is used to store AMDC installation packages and License files. Uploaded files undergo preliminary validation by the console to determine their availability, and are selected for use in automatic deployment.

Note: In the current AMDC administrator menu, installation packages, Licenses, machines, and configuration templates are uniformly placed under [Resource Management]. Version management is not directly displayed in the current menu; if the entry changes, please refer to the actual menu.

# Package Management

Go to [Resource Management] > [Package Management] to upload installation packages used for automatic deployment.

login

  • Upload an installation package

    Click the [Upload] button to open the upload installation package pop-up window, click [Choose File] to select the installation package to upload, and then click OK.

    Only one installation package can be uploaded at a time, and you can specify the package type (c or go).

login

  • Delete installation packages

    Select the installation packages to delete and click the [Delete] button in the upper left corner; multiple packages can be deleted at the same time.

# License Management

Go to [Resource Management] > [Certificate Management] to upload Licenses used for automatic deployment. After uploading, the Licenses will be parsed, and invalid Licenses cannot be saved in the console.

login

  • Upload Licenses

    Click the [Upload] button to open the upload License pop-up window, click [Choose File] to select the License files to upload, and then click OK; multiple files can be uploaded at the same time.

  • Delete Licenses

    Select the Licenses to delete and click the [Delete] button in the upper left corner; multiple Licenses can be deleted at the same time.

# Generate Authorization Center File

On the License management page, click the [Generate Authorization Center File] button to generate the acls.properties authorization center configuration file, used for ACL authorization scenarios in clusters.

# Version Management

Version management is used to view and manage the version history of deployed AMDC instances, and supports version rollback operations on instances. Please refer to the actual deployment environment for the current menu entry.

# Configuration Templates

Click [Resource Management] > [Configuration Templates] to enter the configuration templates page, where you can define configuration templates for the cache core and Sentinel, and use the templates in [Automatic Deployment].

Note: Non-public parameters related to IP, port, etc. will not take effect in configuration templates, to ensure the normal operation of automatic deployment.

login

# Core Operation Flows

This section is organized by actual operations tasks and introduces how to complete the full lifecycle operations of services in the console.

# Automatically Deploy a New Service

AMDC administrator path: [Deployment Management] > [Automatic Deployment]

After entering the [Automatic Deployment] page, fill in the deployment information in a 4-step wizard:

  1. Basic Configuration: Service name, deployment mode, installation package, installation directory, AMDC password, sudo, auto-start on boot, etc.
  2. Topology Configuration: Select automatic/manual topology, configure the number of nodes, port range, machines, and License authorization.
  3. Configuration Templates: Select the cache core configuration template (Sentinel mode also requires selecting the Sentinel configuration template).
  4. Confirm Deployment: After confirming the information, save the task or execute it directly.

After filling in the information, you can click [Save Task] to save it only to [Deployment Management] > [Deployment Tasks], or click [Execute Task] to start deployment immediately. Deployment progress and status can be viewed in [Deployment Management] > [Deployment Tasks].

Prerequisites:

  • The target server has been added in [Resource Management] > [Machine Management], and the SSH connection is normal.
  • The installation package has been uploaded ([Resource Management] > [Package Management]).
  • The License has been uploaded ([Resource Management] > [Certificate Management]).
  • The target server has the tar and ss commands.

Basic Configuration Parameters:

Parameter Meaning
Service Name Unique identifier of the service; only supports letters, digits, underscores, and hyphens, no more than 24 characters
Deployment Mode Standalone / master-slave / Sentinel / cluster / pre-generated nodes
Installation Package Select an uploaded AMDC installation package version
Installation Directory The root directory of the service installation (seat), e.g., /data/redis; nodes are actually located at {seat}/{port}
AMDC Password Cache core management password; click the settings button to configure complexity rules
sudo Whether to use sudo privileges to execute installation commands
Auto-start on Boot Whether the service runs automatically when the system starts

Automatic deployment basic configuration

You can use the auto-start on boot option to make the service start automatically after deployment is complete

Automatic deployment other settings

The settings behind the password lead to the password format requirements settings interface, where you can set password complexity and length

login

Topology Configuration Parameters:

Parameter Meaning
Topology Mode Automatic: the system automatically assigns ports and roles; Manual: configure the machine, port, role, and license for each node
Available Port Range The start and end ports for automatically assigned node service ports, default 6359–65535
Number of Master Nodes The number of master nodes; cluster mode requires at least 3
Number of Slave Nodes The number of slave nodes corresponding to each master node
Number of Sentinel Nodes Dedicated to Sentinel mode; 3 or more recommended to ensure high availability
Machines and Licenses Select the deployment machines and select License authorization for machines (non-Sentinel nodes); all machines must be in the same machine group

Automatic deployment topology configuration

# Automatically Deploy in Standalone Mode

Before automatic deployment in the console, ensure that the target server connection is normal, the target server has been added to the machine list (refer to Machine Management), and the target server has the tar and ss commands.

Operation steps:

  1. Select [Standalone] mode in the basic configuration; the default number of master nodes is 1 and slave nodes is 0.
  2. Select machines and assign Licenses in the topology configuration.
  3. After confirming the deployment information, click the [Install] button to perform one-click deployment.

Verify the automatic deployment result: click the [Deployment Management] > [Service List] menu to check whether the cluster has been generated and its status is healthy. You can use [Command Line] for further verification.

# Automatically Deploy in Master-Slave Mode

Before automatic deployment in master-slave mode in the console, ensure that the target server connection is normal and the target server has been added to the machine list (refer to Machine Management).

Operation steps:

  1. Select [Master-Slave] mode in the basic configuration, and select the AMDC core installation package and License according to the page content.
  2. Select machines, configure the number of master-slave nodes, and assign Licenses in the topology configuration.
  3. Click [Install] to automatically complete the master-slave deployment.
# Auto-deploying Sentinel Mode

Before auto-deploying Sentinel mode from the console, make sure the target servers are reachable and have been added to the machine list (see Machine Management).

Steps:

  1. Select the [Sentinel] mode in the basic configuration.
  2. In the topology configuration, select machines, configure the number of master/slave nodes and Sentinel nodes, and assign licenses.
  3. Select the Sentinel configuration template in the configuration template step.
  4. Click [Install] to automatically complete the Sentinel deployment.
# Auto-deploying Pre-generated Node Mode

Pre-generated nodes are used in scenarios such as smooth migration: cluster nodes are deployed in advance but do not join the cluster (no CLUSTER MEET is executed), so they can be switched over directly during migration.

Steps:

  1. Select the [Pre-generated Nodes] mode in the basic configuration.
  2. Configure the number of nodes, machines, and licenses as in Cluster mode.
  3. After deployment, the nodes remain in standby state and can later be selected in [Smooth Migration].

# Importing an Existing Cluster or Standalone Instance

For AMDC cache cores that were not deployed by the console, you can import them into the console to perform monitoring, modification, command execution, and other operations. Go to the service list and click the [+] import button, then fill in the information of the cluster/standalone instance to be monitored as prompted on the page.

Parameter Description
Cluster Name Custom cluster name
AMDC Password Password of the AMDC cache core
AMDC Node IP:port of the AMDC cache core

login

# Scaling Out Nodes

Click the [Scale Out] button to jump to the auto scale-out page, where you can add slave nodes in master-slave mode or add nodes in Cluster mode.

The original cluster service name is inherited during scale-out and cannot be modified; the selectable range of the target deployment mode is limited by the original mode:

  • Standalone → can be scaled out to Master-Slave or Sentinel
  • Master-Slave → can be scaled out to Master-Slave or Sentinel
  • Sentinel → can only be scaled out to Sentinel
  • Cluster → can only be scaled out to Cluster

The scale-out wizard is the same as auto deployment and consists of 4 steps: basic configuration, topology configuration, configuration template, and deployment confirmation. The topology configuration is pre-filled with the original cluster information; adjust the number of nodes, machines, and licenses as needed and then execute.

Scale-out deployment

# Removing Nodes (Scale In)

Go to Service Details > [Settings], select the node to operate on, and click the [Node Operations] drop-down menu:

Node operations

  • Flush: clears the distributed cache data of the currently selected node. Executed after confirmation.
  • Remove: removes the selected node from the cluster. Executed after confirmation; if the removed node is a master, the system automatically performs failover or data migration (the specific behavior depends on the deployment mode).

Note: Removing nodes changes the cluster topology. It is recommended to perform this operation during off-peak hours and back up data in advance.

# Cluster Upgrade

Click [Upgrade] in the [Upgrade/Rollback] drop-down menu at the top of the [Settings] page to open the "Cluster Upgrade" drawer.

Upgrade/Rollback menu

Upgrade notes:

  • The upgrade stops the entire cluster and replaces the binaries; the cluster is unavailable during this period.
  • If the upgrade fails, the system automatically rolls back to the pre-upgrade version from the backup.
  • Only upgrades to the same or a higher version are supported; to return to an earlier version, use smooth migration.
  • Node data is automatically backed up before the upgrade. Make sure each node has sufficient disk space.

Select the installation package to upgrade to in the list and click [Confirm Upgrade]. The system creates an upgrade task and executes it in the background. During the upgrade, you can observe the cluster status in the task list or the Monitoring Center.

Cluster upgrade

# Version Rollback

Click [Version Rollback] in the [Upgrade/Rollback] drop-down menu at the top of the [Settings] page to open the "Version Rollback" drawer.

Rollback notes:

  • The rollback stops the entire cluster and restores a historical backup; the cluster is unavailable during this period.
  • If the rollback fails, the system automatically rolls back to the pre-rollback version from this backup.
  • The current version is automatically backed up before the rollback. Make sure each node has sufficient disk space.

Select the historical version to roll back to in the list (marked as "Upgrade Backup" or "Rollback Snapshot") and click [Confirm Rollback] to execute.

Version rollback

# Smooth Migration

Click [Smooth Migration] in the [Cluster Operations] drop-down menu at the top of the [Settings] page to migrate data from the current cluster to a target cluster.

Cluster Operations menu

Migration notes:

  • Smooth migration migrates data from the source cluster to the target cluster through incremental synchronization, with no downtime required during migration.
  • There is only a brief write freeze at the moment of switchover.
  • After the migration is complete, the business access IP/port will change. Update the client connection configuration in advance.
  • In Sentinel mode, Sentinel nodes do not participate in the migration. After migration, check whether the Sentinel configuration points to the new master-slave nodes.

Steps:

  1. In the "Cluster Migration" window that pops up, view the migration instructions according to the current mode.
  2. Click [Create Target Nodes] and create the target nodes through the auto deployment wizard in the drawer; after creation, the system automatically fills in the target IP/port/password.
    • In Cluster mode, a corresponding target node must be created for each source node.
  3. After confirming that the target information is correct, click [Next] to enter the migration confirmation page.
  4. Read the migration risk notice: during the migration, the source cluster will experience a brief write freeze (about 30 seconds). Make sure the business side can tolerate a short write interruption and prepare a connection configuration switchover plan in advance.
  5. After confirming the information, execute the migration. The system displays the migration progress.

Smooth migration

Migration confirmation

# Refreshing Nodes and Associating Machines

# Refreshing Nodes

Click [Refresh Nodes] in the [Cluster Operations] drop-down menu at the top of the [Settings] page. The system re-probes the actual cluster node topology and compares it with the console's current records.

Refresh notes:

  • After the refresh is confirmed, newly added nodes are brought under management, detached nodes are removed, and role changes are corrected.
  • This operation only synchronizes node metadata; it does not stop or restart nodes and does not affect business access.
  • When the number of nodes or roles displayed on the console is inconsistent with the actual cluster, it is recommended to perform a node refresh.

After the refresh is complete, a pop-up window displays the comparison result (the number of currently recorded nodes, the number of actually probed nodes, and a description of the changes).

Refresh nodes

# Associating Machines

Go to [Deployment Management] > [Service List], click the service name to enter the service details, and then click [Settings] to enter the cluster settings page. Select the corresponding node and click the [Associate Machine] button to associate the imported node with the machine information, which provides the node with full management capabilities.

login

# Log Rotation

Click the [Log Rotation] button under "More Operations" on the [Settings] page to configure the cluster's log rotation policy, including parameters such as log retention days and single-file size limit.

# Removing from Management

Click the [Remove from Management] button under "More Operations" on the [Cluster Settings] page to remove the cluster from the console's managed state. After removal, the console no longer manages or monitors the cluster, but the cluster itself continues to run.

# agent CLI User Guide

# Overview

agent is a binary program compiled from cli-http that interacts with the AMDC Console through HTTP APIs. Unlike amdc-cli, which connects directly to the cache core, agent targets management operations on the console such as resources, deployment, tasks, and monitoring. It is suitable for automation scripts, batch operations, CI/CD integration, and server environments without a graphical interface.

The main differences between the two are as follows:

Tool Connection Target Main Capabilities
amdc-cli AMDC cache core Executes Redis protocol commands and native cluster management
agent AMDC console Performs management operations such as deployment, operations, tasks, and monitoring

Applicable scenarios: automation scripts, batch operations, CI/CD integration, environments without a graphical interface.

# Obtaining agent

The agent binary is released together with the AMDC Console installation package. After extracting the installation package, you can find the agent executable for the corresponding platform in the amdc_console/agent/ directory (for example, on Linux amd64 it is the agent extracted from amdc_console/agent/agent_linux_amd64.tar.gz).

# Access and Authentication

Before using agent, configure the following two environment variables:

  • AMDC_SERVER: the access address of the AMDC console, for example http://172.17.47.213:3001/.
  • AMDC_CLI_TOKEN: an AI Token issued by the administrator, used for identity authentication.

Example environment variable configuration on Linux / macOS:

export AMDC_SERVER="http://<server-ip>:3001/"
export AMDC_CLI_TOKEN="<your-ai-token>"
1
2

Example environment variable configuration on Windows PowerShell:

$env:AMDC_SERVER = "http://<server-ip>:3001/"
$env:AMDC_CLI_TOKEN = "<your-ai-token>"
1
2

After configuration, you can verify that the connection works with the following command:

agent cluster list
1

Note: AMDC_CLI_TOKEN is generated and issued by the administrator in the console. Keep it safe and avoid disclosure.

# Global Parameters

agent supports the following global parameters, which can be used to override environment variables or adjust the output format:

Parameter Description Example
--server Specifies the AMDC console address --server http://<server-ip>:3001/
--cli-token Specifies the AI Token --cli-token <your-ai-token>
--json Outputs results in JSON format --json
-h / --help Displays help information agent --help

# Typical Scenario Examples

# Viewing the Cluster List

# List all clusters
agent cluster list

# View details of a specified cluster
agent cluster get <cluster-id>
1
2
3
4
5

Use agent cluster list to quickly obtain an overview of all clusters under the current tenant; use agent cluster get <cluster-id> to view the nodes, status, and configuration details of a specified cluster.

# Adding Machines, Certificates, and Installation Packages

# Create a machine group
agent machine group-create --name <machine-group-name>

# Add a machine to the machine group
agent machine add --file machine.json
1
2
3
4
5
{
  "machine_group_name": "<machine-group-name>",
  "login_name": "root",
  "pwd": "<rsa-encrypted-base64-password>",
  "host": "<server-ip>",
  "sshport": 22,
  "note": "Production-machine-01",
  "user_id": 1
}
1
2
3
4
5
6
7
8
9

Note: the pwd field must first be encrypted with RSA and then Base64-encoded.

# Upload a License certificate
agent document upload-license --file <license-file-path>

# Upload an AMDC installation package
agent document upload-pkg --file <package-file-path>
1
2
3
4
5

The above commands complete the resource preparation before auto deployment: creating a machine group, adding target machines, and uploading the License and installation package.

# Executing Auto Deployment

agent autodeploy exec --file <deploy-config.json>
1

Describe the deployment parameters (service name, deployment mode, node topology, machines, licenses, etc.) in a JSON configuration file; agent automatically submits the deployment task to the console and returns the execution result. You can then check the task progress with agent task list.

# Scaling Out a Cluster

agent expand exec --file <expand-config.json>
1

The scale-out operation inherits the original cluster service name. Specify the scale-out configuration file with --file to add slave nodes in master-slave mode or add shard nodes in Cluster mode.

# Viewing the Monitoring Dashboard and Slow Logs

# View the global monitoring dashboard
agent monitor dashboard

# View slow logs of a specified node
agent monitor slow-log --node-host <node-host>
1
2
3
4
5

agent monitor dashboard provides an aggregated overview of all clusters; agent monitor slow-log queries the slow log records of a specified node, where --node-host is the target node address in the format host:port.

# Quick Reference of Common Commands

Functional Area Top-level Command Core Subcommands
Cluster management cluster list, get, import
Cluster operations cluster-manage / cm node-info, config-get, config-update, backup, recover, flush, operate, etc.
Machine management machine list, add, group-create, group-list, etc.
Auto deployment autodeploy exec
Scale out/in expand exec, save, reduce
Deployment resources document pkg-list, upload-pkg, license-list, upload-license, etc.
Task center task list, get, exec
Upgrade tasks upgrade-task list, get, create, rollback
Cluster migration migration prepare, create, list, get
Monitoring and diagnostics monitor dashboard, dynamic, static, slow-log, keys-analyse
Configuration templates conftemp list, add, update, content
Operation history history list, export
ACL acl list, create, update, delete
Password policy password-policy get, update

For more commands and parameter descriptions, use agent <command> --help.

# AI Corpus Examples

In an environment where AMDC_SERVER and AMDC_CLI_TOKEN have been configured, you can directly give the following natural-language instructions to an AI, which will call agent to complete the corresponding operations.

# Viewing the Status of All Clusters

Use the agent CLI to list all AMDC clusters under the current tenant, and return the cluster ID, name, deployment mode, and status in a table.
1

# Auto-deploying a Cluster

Use the agent CLI to automatically deploy an AMDC Cluster-mode service with 3 masters and 3 slaves on the machine group "prod-group". The service name is "amdc-prod-01" and the installation directory is /data/amdc. Use the uploaded installation package and License, and return the deployment task ID.
1

# Scaling Out a Cluster

Use the agent CLI to scale out the service with cluster ID &lt;cluster-id> by adding 2 master-slave node groups in the machine group "prod-group", and return the task status after the scale-out is complete.
1

# Viewing Node Slow Logs

Use the agent CLI to view the 50 most recent slow log entries on node &lt;node-host>, sorted by elapsed time in descending order.
1

# Uploading Resources in Batch

Use the agent CLI to upload the installation package /data/packages/AMDC-V2.0.5.tar.gz and the License file /data/licenses/amdc.lic to the console, and return the resource IDs after the upload.
1

Note: before the AI executes the above tasks, make sure that AMDC_SERVER and AMDC_CLI_TOKEN have been set in the current environment; otherwise authentication will fail.

# Service Monitoring and Alarms

# Monitoring Center

Path: [Monitoring Center]

The Monitoring Center is a global monitoring dashboard that aggregates the running overview of all current clusters:

  • Top metric cards: total number of clusters, healthy clusters, abnormal clusters, and total number of nodes.
  • Status distribution: a donut chart showing the proportion of healthy, partially abnormal, and abnormal clusters.
  • Top 5 key metrics: Top 5 node rankings by memory, QPS, and connections.
  • Cluster overview: displays each cluster's name, deployment mode, number of nodes, health status, total memory usage, and operation entries.

Monitoring Center

# Service Monitoring

Click the [Monitor] button under the service column to enter the cluster monitoring page, which displays the detailed information and key metrics of the current cluster. The path to the service list differs slightly by role: AMDC administrators enter through [Deployment Management] > [Service List]; tenant administrators enter through [Service List].

login

# Analysis

Click the [Analysis] button above [Monitor] to enter the [Analysis] page, where you can query and analyze bigkeys, hotkeys, memkeys, monitor, and slowlog data of the cache core.

login

# Alarm Channels

An alarm channel is the notification method used to notify recipients. The AMDC console provides alarm channels in the form of Email.

login

# Adding an Alarm Channel

Go to [Alarms] > [Alarm Channels] and click the [Add] button to add an alarm channel.

Parameter Description
Channel Name Custom
Channel Type Email
SMTP Address Mail transfer protocol server
SMTP Port Port used by the mail server
Sender Email Username of the sending mailbox
Password Password of the sender's mailbox
Recipients Users under the current tenant; multiple selections are supported to notify multiple people at the same time
Remarks Remark information

login

# Editing an Alarm Channel

Go to [Alarms] > [Alarm Channels], select the alarm channel to edit, and click the [Edit] button on the right side of the alarm channel list to edit the alarm channel.

# Deleting an Alarm Channel

Go to [Alarms] > [Alarm Channels], select the alarm channel to delete, click the [Delete] button on the right side of the alarm channel list, and click [Confirm] in the confirmation box to delete the alarm channel.

# Alarm Rules

Set alarm rules in the console. When the configured conditions are met, an alarm is triggered within the configured time and sent at the configured frequency!

login

# Creating an Alarm Rule

Alarm rules are divided into global alarm rules that take effect for all clusters and local alarm rules that take effect for a single cluster. Turn on the global switch to apply the rule to all clusters. Go to [Alarms] > [Alarm Rules] and click the [Create] button in the upper right corner of the page to create an alarm rule.

  • Node status alarm: the node alarm switch; when the switch is on, node alarms are enabled
  • Rule name: a custom alarm rule name
  • Rule: set the conditions that trigger the alarm
  • Comparison operator: select the comparison operation
  • Comparison value: enter the alarm comparison value; the alarm is triggered when this value is reached
  • Period: the period at which the rule is checked: 5min, 10min, 20min, 30min, 45min, 1h, 2h
  • Effective: when the switch is on, the alarm rule takes effect
  • Global: defaults to No; when Global is selected, the rule applies to all clusters of the current tenant

login

# Editing an Alarm Rule

Go to [Alarms] > [Alarm Rules], select the corresponding alarm rule, and click the [Edit] button on the right side of the list to edit the alarm rule.

# Deleting an Alarm Rule

Go to [Alarms] > [Alarm Rules], select the alarm rule to delete, and click the [Delete] button on the right side of the list to delete the alarm rule. You can also select multiple alarm rules and click the [Delete] button in the upper left corner to delete them in batch.

# Account Permissions and Security

This section describes the account system and three-role separation mechanism of the console based on MLPS 2.0. If anything here differs from what you see in your actual deployment, follow what is shown after login.

# Role System and Menu Visibility

Console V2.0.5 uses a five-role system. After logging in, each role can only see the menus within its scope of responsibility. This design complies with the "Separation of management user privileges" requirement in GB/T 22239-2019 (Information Security Technology — Baseline for Multi-Level Protection of Cybersecurity).

Role Account Responsibility Default Visible Menus
System Administrator sys_admin Tenant management and tenant administrator account management [Tenant] > Tenant Management, Account Management
Security Administrator sec_admin Global security policy, user lock/unlock, password reset, access control policy [Tenant] > Authorization Management, Password Policy
Audit Administrator audit_admin Audit policy, audit log viewing and analysis, audit report (read-only) [Operation History]
Tenant Administrator tenant_admin Account and password policy within the current tenant [Tenant] > Account Management, Password Policy, [Operation History]
AMDC Administrator amdc_admin Global management of AMDC instances [Monitoring Center], [Deployment Management] (Service List, Auto Deployment, Deployment Tasks), [Resource Management] (Package Management, Certificate Management, Machine Management, Configuration Templates), [Alarms]

The three roles (System / Security / Audit Administrator) are auto-generated when the system starts. There is exactly one account for each, and they cannot be deleted. Their menus are independent and the three roles cannot be assigned to the same user.

By nature, the actual users of console functions fall into two categories:

  1. Administrator accounts: hold tenant/user management permissions and decide how services and data resources are allocated.
  2. Tenant accounts: are data users within a tenant. They can use the services and perform some management operations. Data is isolated between different tenants. Tenant administrators have only usage rights, not ownership of services within their tenant (they cannot decide on deletion or modification of cache cores themselves).

The figure below shows the home menu differences across the five roles:

AMDC Administrator Home Menu (Monitoring Center / Deployment Management / Resource Management / Alarms)

# Login and First-time Password Change

On first startup, the console auto-generates initial passwords (12 random characters each) for all preset administrator accounts, including the three-role administrators, the tenant administrator, and amdc_admin. These passwords are written to the ./resource/.initial_passwords file in the installation directory.

Open a browser and access the console URL (default http://<console IP>:9001/). The login page is shown below:

Console Login Page

First-login steps:

  1. Enter the account (e.g. sys_admin).
  2. Enter the 12-character random password from the corresponding line in the .initial_passwords file.
  3. Enter the graphic verification code shown on the page (case-insensitive).
  4. Click [Login].

Tip: when the password field contains special characters (e.g. #, $, *), prefer pasting directly into the browser to avoid being stripped by the shell or terminal.

After a successful first login, you are redirected to the mandatory password-change page. You must change your password according to the current password policy before you can enter the console:

First-login Mandatory Password Change Page (requires 8-32 characters, digits, uppercase letters, lowercase letters, and special characters)

Note: if the new password does not meet the complexity policy, you stay on the password-change page and the next submission displays specific items that failed validation. Adjust accordingly and resubmit.

# Resetting a Preset Account Password When Forgotten

If the .initial_passwords file is lost, or a preset account is locked by too many failed login attempts (e.g. amdc_admin has used up its remaining attempts), you can use the console CLI in the installation directory to directly reset a preset account's password to a new 12-character random value. The account itself is not locked or deleted.

Steps:

  1. SSH to the console server and switch to the directory that contains the amdc-console executable (default /home/mofant/test-soft/amdc/amdc_console):

    cd /home/mofant/test-soft/amdc/amdc_console
    
    1
  2. Run the reset command and specify the preset account name (allowed values: sys_admin / sec_admin / audit_admin / tenant_admin / amdc_admin):

    ./amdc-console --reinit amdc_admin
    
    1

    On success, the console prints the new password, for example:

    账户 amdc_admin 的密码已重置。
    新密码: Yg!.U,f19wmE
    请使用新密码登录,并按提示修改密码。
    
    1
    2
    3
  3. Immediately log in with the new password in the browser and complete the first-time password change as prompted.

-reinit notes:

  • It only works on the five preset accounts; it has no effect on business accounts created inside the console.
  • After reset, the account is not disabled and the lockout counter is cleared, with no other side effects.
  • The reset command must be executed in the directory that contains the amdc-console executable (not the AMDC cache-core directory), with read/execute permission on that directory.
  • See ./amdc-console --help for supported flags (-c string config file; -reinit string preset-account reset).

# Three-role Management

# System Administrator (sys_admin)

After login, the default landing page is [Tenant] > [Tenant Management]. The left sidebar contains only [Tenant Management] and [Account Management]:

System Administrator Console - Tenant List

Tenant Management

Click the [Create] button in the upper right corner to open the Add Tenant dialog:

System Administrator - Create Tenant Dialog

Fill in the tenant name (required, unique) and the remark (optional), then click [OK] to return to the list. The newly created tenant row appears in the list with its creation time:

System Administrator - Tenant List After Creation (including the new "demo-tenant-A")

Click the [Tenant Administrator] button on a tenant row to open a dialog listing the tenant administrators under that tenant, used to maintain the binding between tenant administrators and tenants:

Tenant Administrator Account Dialog (view tenant administrators per tenant)

Account Management

Switch to [Tenant] > [Account Management] to view all accounts in the console (including tenant administrators and tenant users), and edit them:

System Administrator - Account Management List

Click [Create] to open the Create Account dialog:

System Administrator - Create Account Dialog (avatar / login account / user name / phone / email / password)

Tip: when creating an account you must enter the "Password" field and it must comply with the current password policy. The account is enabled by default after creation. You can click [Edit] in the list to modify it later.

# Security Administrator (sec_admin)

After login, the menu only contains [Tenant] > [Authorization Management] and [Tenant] > [Password Policy], used to configure access control and password policy:

Authorization Management

Security Administrator - Authorization Management Home

Users in the "Unassigned Group" (those not assigned to any tenant) must first be authorized to a tenant on this page before the account can log in.

Changing a User's Password

A newly created account has no initial password and must have a password set by the security administrator here before it can log in. Select the target user row and click the [Change Password] button at the top of the list.

Activation / Freezing

Click the [Activate/Freeze] button at the top of the list to toggle a user between "Enabled" and "Frozen". A frozen account cannot log in but the account record is preserved.

Password Policy

Go to [Tenant] > [Password Policy]. The password policy consists of two parts, the presets and a custom area, and applies to all accounts in all tenants after saving:

Security Administrator - Password Policy Configuration Page (Presets + Custom Password Complexity / Security Policy)

Presets (not editable, for quick selection):

Preset Length Max Retries Freeze Expiration History Required Characters
Simple 8-32 10 15 min 90 days 0 digits, letters + digits
Medium 10-32 5 30 min 90 days 3 uppercase, lowercase, digits
Complex 12-32 3 60 min 90 days 5 uppercase, lowercase, digits, special characters

Note: presets differ in length, history count, and lockout policy. Clicking a preset auto-fills the values in the custom area below. After saving, the policy takes effect for all tenant accounts.

Custom fields:

Field Default Description
Minimum length 8 Cannot be lower than this
Maximum length 32 Upper bound
Require digits On Whether the password must include digits
Require uppercase letters Off Whether the password must include uppercase letters
Require lowercase letters Off Whether the password must include lowercase letters
Require special characters Off Whether the password must include special characters
Max retry attempts 5 Account is locked after this many consecutive login failures
Freeze duration (minutes) 30 Auto-unlock waiting time after lockout is triggered
Password expiration (days) 90 Password validity in days; forced change after expiration
Historical passwords (count) 5 The new password must not match any of the last N historical passwords

# Audit Administrator (audit_admin)

The audit administrator's menu only contains [Operation History] after login, used to view full audit logs in read-only mode:

Audit Administrator - Operation History (Audit Log List)

Operation History records all user actions on the console. The list fields include: serial number, user, user access IP, feature used, operation, event result (success / failure), and time. The page supports filtering by time range, keyword search (user / feature / operation), resetting conditions, and backing up audit logs.

# Tenant Administrator (tenant_admin)

The tenant administrator's menu only contains [Tenant] > [Account Management, [Tenant] > [Password Policy], and [Operation History], and can manage accounts within the current tenant:

Tenant Administrator - Account Management (accounts within the current tenant only)

The tenant administrator cannot manage cross-tenant accounts, nor perform cross-tenant authorization.

# Passwords and Security

# Changing the Current User's Password

After logging in, click the user avatar in the upper right corner of the page and choose [Change Password] from the dropdown menu:

User Menu (Change Password / Logout)

In the pop-up window enter the old password and the new password (twice), then submit for immediate effect. The new password must comply with the current console password policy.

# Logging Out

Choose [Logout] from the user menu. A confirmation dialog appears:

Logout Confirmation

Click [OK] to clear the current session and return to the login page.

# Common Problems

Problem 1: Login shows "Login failed! Wrong password, N attempts remaining"

  • Cause: the password does not match the console record and the threshold has not been reached.
  • Solution: re-check capitalization and special characters and try again. If the maximum retry count (default 5) is exceeded, the account is temporarily locked. Wait for the freeze duration (default 30 minutes) for auto-unlock, or ask the security administrator to force-unlock it in [Authorization Management].

Problem 2: Login shows "Login failed! Wrong verification code"

  • Cause: the graphic verification code is wrong or has expired (it is valid for a single session).
  • Solution: click the verification code image to refresh and re-enter. After several failures, refresh the whole login page.

Problem 3: After submitting the first-time password change you stay on the change-password page

  • Cause: the new password does not meet the current password policy (e.g. missing uppercase / digits / special characters, or length outside 8-32).
  • Solution: follow the "Password policy requirement" hint at the top of the page, modify the new password accordingly, and submit again.
编辑页面 (opens new window)
#User Manual

← Quick Start Guide Cache Core User Manual→

  • 浅色模式