Deployment and Maintenance / Administrator Tools
This article mainly introduces how to use administrator tools to maintain DataFlux Func.
1. Administrator Tool admin-tool.py
DataFlux Func provides an administrator tool to facilitate some emergency maintenance tasks.
The administrator tool is included in the container and needs to be run using Docker exec. You can use --help to view specific usage:
| Bash | |
|---|---|
1 | |
| Text Only | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | |
1.1 Reset Administrator Password
Ordinary user passwords can be directly reset by the system administrator. However, if the system administrator forgets their own password, they need to use the administrator tool included with DataFlux Func to reset it.
For details, please refer to Deployment and Maintenance / Administrator Tools
1.2 Reset Database Upgrade Sequence Number
During installation/upgrade, DataFlux Func automatically updates the database structure and records the current database structure version sequence number.
In some cases, if this sequence number is incorrect, it may cause the system to fail to start normally. In such cases, the administrator tool needs to be used to correct it.
If you don't know what this is, please consult the official support before proceeding
The specific commands are as follows:
- Outside the container
| Bash | |
|---|---|
1 | |
- Inside the container
| Bash | |
|---|---|
1 | |
1.3 Disable IP Address Filtering
If you misconfigured the System Settings / IP Address Filtering, causing inability to access DataFlux Func.
You can use the following command to directly disable the IP address filtering function.
The specific commands are as follows:
- Outside the container
| Bash | |
|---|---|
1 | |
- Or inside the container
| Bash | |
|---|---|
1 | |
1.4 Clear Redis
If you encounter situations such as queue blockage requiring immediate recovery, or unreasonable script logic causing excessively large cache, leading to inability to operate DataFlux Func.
You can use the following command to clear the Redis database.
Clearing Redis will not cause problems for DataFlux Func's own operation. However, running business code may depend on data in Redis. Please be absolutely certain before proceeding
The specific commands are as follows:
- Outside the container
| Bash | |
|---|---|
1 | |
- Or inside the container
| Bash | |
|---|---|
1 | |
2. Directly Operate Redis
If you need to directly operate Redis, you can enter the Redis terminal to perform operations.
The specific command is as follows:
| Bash | |
|---|---|
1 | |
DataFlux Func uses Redis database number 5 by default