Redis instances
Redis is a storage system that supports multiple data structures such as key-value, with the following features.
- support for mixed memory plus disk storage.
- Supports data structures such as String, Hash, List, Set, Sorted Set, and Stream.
Currently, the OneCloud platform already supports managing and creating Redis instances in Alibaba Cloud, Huawei Cloud and Tencent Cloud, and AWS, Azure Redis instances and Tencent Cloud Platform’s cloud cache Memcached only support synchronization for now. Other platforms are being supported in succession.
Using process
- Create a Redis instance, please see Create Redis Instance for details.
- If you want to control the IP address of the Redis database, please set up a whitelist, please see Create Whitelist for details.
- After the system is created, there is only an administrator account. Users can create accounts and set permissions according to their needs, please see Create Account for details.
- Use the account to connect to the Redis database.
Entry: In the cloud management platform, click the top left corner of navigation menu, and click “Database/Redis/Redis Instances” menu item in the left menu bar that pops up to enter the Redis instance page.
-
The top right of the list will show the total number of Redis and the number of Redis that are running, shutdown, operation failed, and unknown.
Create Redis instance
This function is used to create a new Redis instance, which is currently only supported for Alibaba Cloud, HuaweiCloud, and TencentCloud.
- On the Redis instance page, click the “Create” button at the top of the list to enter the Create Redis instance page.
- Configure the following parameters.
- Name: The name of the Redis instance.
- Specify Project: Specify the project to which the Redis instance belongs when creating a new Redis instance.
- Billing type: Including postpaid, prepaid packages.
- This model is suitable for scenarios where the demand for equipment can increase dramatically in an instant, and is more expensive than an prepaid subscription.
- This model is suitable for scenarios where the demand for the device is relatively stable and the price is cheaper than the pay-per-use model. You also need to set the purchase length after selecting the yearly package.
- Release at expiration: Set the length of time that a newly created Redis instance will be used, after which the Redis instance will be deleted. Only pay-per-use Redis instances support expiration.
- Number: Sets the number of Redis instances created.
- Region: Select the region where the Redis instance is located, and select the platform, region, and zone within the corresponding region. The supported platforms may vary by city, so please see the actual interface.
- Type: I.e. Redis.
- Version: The version information of Redis.
- Alibaba Cloud and Tencent Cloud support Redis 2.8, 4, 5.
- Huawei Cloud supports Redis 4, 5.
- Instance type.
- Basic: Only single copy is supported.
- Highly available: Only dual-copy is supported.
- Clustering: Alibaba Cloud and Tencent cloud clusters support single copy and double copy; Huawei cloud clusters support double copy only.
- Read-Write Separation (only supported by Alibaba Cloud): Redis read-write separation version consists of Proxy Servers, Master and Replica nodes, and Read-Only nodes.
- Node types: Mainly single copy, dual copy, and read-only nodes.
- copy: copy is a single-node caching architecture, with no data reliability guarantee.
- Dual-copy: Dual-copy is a dual-machine hot standby architecture with one master and one slave, with persistent data preservation.
- Read-only node: master node writes, slave node reads only. Supports the selection of read-only nodes (1), read-only nodes (3), and read-only nodes (5).
- Performance type: support for standard performance and enhanced performance
- Memory: Available packages can be filtered out based on memory.
- Package: Displays information on Redis instance specifications, platform, node type, spare zone, memory, CPU, storage architecture, number of slices, maximum connections, and price
- Administrator Password: Supports randomly generated and manually entered administrator passwords.
- VPC: Select VPC and IP subnet.
- Security Group: Select security group to restrict the security access rules of the instance, and bind up to 5 security groups. Only Tencent Cloud supports this.
- Click the “OK” button to complete the operation.
Sync Status
This function is used to get the current status of the Redis instance.
Sync Status.
- In the Redis instance list, click the “Sync Status” button in the action bar on the right side of the Redis instance to synchronize the Redis instance status.
Batch Sync Status
- In the Redis instance list, select one or more Redis instances, click the “Batch Operation” button at the top of the list, and select the drop-down menu “Sync Status” menu item to batch synchronize Redis instance status.
Restart
This function is used to restart Redis instances. Restarting Redis instances willBatch Actionon interruptions, so please proceed with caution.
- Select the restart method according to the number of Redis instances to be restarted.
- Restart a single Redis instance: Click the More button in the action bar on the right side of the Redis instance, select the “Restart” menu item, and click the “OK” button in the action confirmation dialog box that pops up.
- Batch Restart: Select one or more Redis instances in the Redis instance list, click the Batch_Operation button at the top of the list, select the drop-down menu “Restart” menu item, and click the “OK” button in the pop-up operation confirmation dialog.
Adjust Configuration
This function is used to adjust the configuration information of the Redis instance. The instance configuration can only be adjusted upward. Tencent Cloud does not support adjusting configuration at this time.
- On the Redis instance page, click the “More” button on the right column of the Redis instance, and select the “Adjust Configuration” menu item to bring up the Adjust Configuration dialog box.
- Support adjusting storage type, CPU, Memory, storage space and other parameters.
- When the configuration adjustment is finished, click “OK” button.
Empty Data
This function is used to clear the data in the Redis instance. The data will not be retrieved after it is cleared, so please operate with caution.
Description
Tencent Cloud non-secure Redis instances require an administrator password when clearing data.
- On the Redis instance page, click the “More” button in the action bar on the right side of the Redis instance, and select the “Empty Data” menu item to bring up the action confirmation dialog.
- Click the “OK” button to complete the operation.
Reset Password
This function is used to change the password of the Redis instance.
- On the Redis instance page, click the “More” button on the right action bar of the Redis instance, and select the “Reset Password” menu item to bring up the Reset Password dialog box.
- Set the account password as randomly generated or manually entered, if you choose manually entered, you need to enter the new password.
- Click “OK” button when the setting is finished.
Change Project
This function is used to change the project to which the Redis instance belongs.
- On the Redis instance page, click the “More” button on the right action bar of the Redis instance, and select the drop-down menu “Change Project” menu item to bring up the Modify Project dialog box.
- Select the domain and project, click “OK” button to finish the operation.
Associated Security Groups
A security group is a virtual packet filtering firewall that controls the access rules of Redis instances, etc. by setting security group rules. Only Redis instances on the Tencent Cloud platform support association security groups.
- On the Redis instance page, click the “More” button on the right action bar of the Redis instance, and select the “Associate Security Group” menu item to bring up the Associate Security Group dialog box.
- You can associate or unassociate security groups in the Associated Security Groups dialog box.
- Associated Security Groups: Select the security groups to be bound, up to 5 groups are supported. If there is no security group that meets the requirements, you can click the “Create Security Group” hyperlink, configure the relevant parameters in the Create Security Group pop-up page, and click the “OK” button to create a security group.
- Unassociate security groups: Deselect security groups and keep at least one security group.
- Click the “OK” button to complete the operation.
Password Exemption Access
Password exemption access is only supported in an intranet environment. When password exemption access is enabled, servers within the same VPC can access the Redis instance without using a password, or they can continue to access the Redis instance using the username and password.
Description
- Alibaba Cloud and Tencent Cloud Platform Redis instances support turning on and off password exemption access.
- Extranet connections do not support setting up password exemption access.
Enable Password Exemption Access
- On the Redis instance page, click the “More” button on the right-hand side of the Redis instance, and select the “Enable Password Exemption Access” menu item to bring up the action confirmation dialog.
- Click the “OK” button to turn on unclassified access.
Disable Password Exemption Access
When you diable password exemption access, the “Enable Password Exemption Access” menu item will be changed to “Disable Password Exemption Access”. After you turn off the password exemption access, please also change the authentication method of the application connected to the Redis instance.
- On the Redis instance page, click the “More” button in the action bar on the right side of the Redis instance, and select the “Disable Password Exemption Access” menu item to bring up the action confirmation dialog.
- (Tencent Cloud) Reset password and click the “OK” button to disable password exemption access.
- (Others) Click the “OK” button to disable password exemption access.
Auto delete after
Auto delete after sets the length of time that a Redis instance will be used and will be automatically deleted when the set period is exceeded.
- On the Redis instance page, click the “More” button on the right-hand column of the Redis instance, and select the “Auto delete after” menu item to bring up the Auto delete after dialog box.
- Select whether to check the due date release, set the release time after checking, and click the “OK” button.
- Click the Release Time input box to display the calendar and other contents. Support entering the date and time directly in the Release Time input box in the format of yyyy-mm-dd hh:mm:ss, and click the “OK” button.
- Select the date in the calendar box, click the Select Time button, it will jump to the Set Time page, select the time and click the “OK” button.
- Support quick selection of “1 hour”, “2 hours”, “3 hours”, “6 hours “1 day”, “2 days”, “1 week” button, the release time will be set to the corresponding time range, click “OK” button.
- When the settings are complete, the billing method column displays information such as how long the Redis instance has left to be released.
- If you no longer need the expiration release feature, you can uncheck the Auto delete after dialog box and click the “OK” button before releasing.
Renewal
This function is used to perform renewal operations for Redis instances that will have expired annual packages and monthly packages.
- On the Redis instance page, click the “More” button on the right action bar of the Redis instance, and select the drop-down menu “Renewal” menu item to bring up the Renewal menu item.
- Select the renewal length and click “OK” button to complete the renewal operation.
Expired release Setting
This function is used to perform auto-renewal operation for Redis instances with prepaid subscriptions.
Description
The renewal period is one week for Servers purchased on a weekly basis, one month for Servers purchased on a monthly basis, and one year for Servers purchased on an annual basis on the Alibaba Cloud platform; the renewal period is one month for all other platforms. Subsequent Servers are automatically renewed before each expiration.
- On the Redis instance page, click the “More” button on the right action bar of the Redis instance, and select the drop-down menu “Automatic renewal settings” menu item to bring up the Automatic renewal settings dialog box.
- Expired release: Check Expired release and click “OK” button to set Expired release.
- Cancel Expired release: Uncheck Expired release and click “OK” button to cancel the auto-renewal.
Delete-Lock Setting
This function is used to set the deletion protection for Redis instances. A Redis instance cannot be deleted when deletion protection is enabled for the Redis instance; a Redis instance can only be deleted when deletion protection is disabled for the Redis instance.
Delete-Lock Setting
- Set Delete-Lock disabled:
- Click on the Redis instance name with icon to the right of the Redis instance, click the “More” button in the action bar to the right of the Redis instance, and select the “Delete-Lock Setting” menu item to bring up the Delete-Lock Setting dialog box.
- Select “Disable” delete protection and click the “OK” button.
- Set Delete-Lock enabled:
- When the Redis instance name is not marked with icon to the right of the Redis instance, click the “More” button in the action bar to the right of the Redis instance, and select the “Delete-Lock Setting” menu item to bring up the Delete-Lock Setting dialog box.
- Select “Enable” delete protection, and click “OK” button.
Batch Delete-Lock Setting
- Set Delete-Lock disabled:
- Check one or more Redis instances in the Redis instance list, click the “Batch Operation” button at the top of the list, and select the “Delete-Lock Setting” menu item to bring up the Delete-Lock Setting dialog box.
- Select “Disable” delete protection and click the “OK” button to disable delete protection for Redis instances in batch.
- Set Delete-Lock enabled:
- Check one or more Redis instances in the Redis instance list, click the “Batch Operation” button at the top of the list, and select the “Delete-Lock Setting” menu item to bring up the Delete-Lock Setting dialog box.
- Select “Enable” delete protection and click the “OK” button to enable Batch Actionon for Redis instances in batch.
Delete
Batch Action This function is used to delete Redis instances when the Redis instance name item has icon to the right of the Redis instance name item, it means that the Redis instance is enabled for deletion protection and cannot be deleted.
Delete
- On the Redis instance page, click the “More” button in the operation column on the right side of the Redis instance, select the drop-down menu “Delete” menu item to bring up the operation confirmation dialog.
- Click the “OK” button to complete the operation.
Batch Delete
- Select one or more Redis instances in the Redis instance list, and click the “Delete” button at the top of the list to bring up the operation confirmation dialog.
- Click the “OK” button to complete the operation.
View Redis Instance Details
This function is used to view the details of a Redis instance.
- Click the Redis Instance Name item to enter the Redis Instance Details page.
- View the following information.
- Basic Information: Including Cloud ID, ID, name, status, domain, project, platform, billing method, region, zone (if there is a backup zone, it will also be displayed here), cloud account, created at, updated at, and description.
- Database Information: Including type version, node type, performance type, maintainable time period, instance specification, CPU, storage architecture, memory.
- Link Information: Including intranet address, extranet address and open extranet address operation (only supported by Alibaba Cloud), database port number, VPC, subnet, access method, security groups.
- After opening the extranet address, users can connect to the database through the extranet address and port.
- Other information: Support to turn on or off the deletion protection.
Whitelist Settings
To ensure the security of the Redis database, users can add the IP addresses and IP address segments that access the Redis instance to the whitelist of the corresponding instance, and only IP addresses on the whitelist are allowed to access the Redis instance. By default, all IP addresses are allowed to access the Redis instance without whitelisting.
Currently, only Redis instances on the Alibaba Cloud platform support the whitelist feature.
Create Whitelist
This function is used to create a new whitelist.
On the Redis instance details page, click the “Whitelist Settings” tab to bring up the Create Whitelist dialog box. 2. Set the group name, enter the IP address and IP address segment that are allowed to access the Redis instance in the whitelist, and click the “OK” button. 3. After the whitelist is created, only IP addresses in the instance whitelist will be allowed to access the Redis instance.
Description
- When there are multiple IP addresses and IP address segments, they need to be separated by English commas.
- An instance supports setting up to 20 IP addresses and IP address segments.
Modify whitelist
This function is used to modify the whitelist.
- On the Redis instance details page, click the Whitelist Settings tab to enter the whitelist page.
- Click the “Modify” button on the right column of the whitelist to bring up the Modify Whitelist dialog box. Click the “OK” button to modify the group name and the IP address and IP address segment that are allowed to access the Redis instance.
Delete Whitelist
This function is used to delete a whitelist.
- On the Redis instance details page, click the Whitelist Settings tab to enter the Whitelist page.
- Click the “Delete” button on the right column of the whitelist to bring up the action confirmation dialog.
- Click “OK” button to complete the operation.
Account Management
You can create multiple accounts for Redis instances and assign different privileges to them, allowing more flexibility in managing Redis instances.
After a Redis instance is created, an administrator account is created by default. The administrator account on Huawei Cloud Redis instances does not support any operation, and the administrator account on Alibaba Cloud edis instances supports password reset operation.
Currently, only Alibaba Cloud Redis instances support account management, and they require Alibaba Cloud instances with Redis 4.0 and above engine versions.
Create account
- On the Redis instance details page, click the “Account Management” tab to enter the account management page.
- Click the “Create” button at the top of the list to bring up the Create Account dialog box.
- Set the following parameters.
- Account Name: The name of the account used to access the Redis instance.
- Permissions: Set the permissions of the account, including read-only, read-write, and copy.
- Password: Set the password for the account.
- Confirm Password: Enter the password again.
- Click the “OK” button to complete the operation.
Reset password
This function is used to reset the password of the account when the user forgets the password of the account.
- On the Redis instance details page, click the “Account Management” tab to enter the account management page.
- Click the “Reset Password” button on the right side of the account to bring up the Reset Password dialog box.
- Set a new password, confirm the password, and click “OK” button to complete the operation.
Modify Permissions
This function is used to modify the user’s permissions for the Redis instance. The administrator account does not support the modify permissions operation.
- On the Redis instance details page, click the “Account Management” tab to enter the account management page.
- Click the “Modify Permissions” button on the right side of the account to bring up the Modify Permissions dialog box.
- Set the account permissions and click the “OK” button after you finish modifying them.
Delete
This function is used to delete accounts under a Redis instance. Administrator accounts are not supported for deletion.
- On the Redis instance details page, click the “Account Management” tab to enter the account management page.
- Click the “Delete” button on the right column of the account to bring up the action confirmation dialog.
- Click the “OK” button to complete the operation.
Backup List
To ensure data security and improve system reliability, Redis supports backup restore operation to back up Redis instance data, so that users can use the backup to restore data when it is corrupted or lost.
Huawei Cloud Basic Redis instances do not support backup and restore operations.
Create Create Backup
This feature is used to create backup data immediately. The backup requires the instance to be in running state.
- On the Redis instance details page, click the “Backup List” tab to enter the backup page.
- Click the “Create” button at the top of the list to bring up the Create Backup dialog box.
- Set the name and description, and click the “OK” button to backup the Redis instance immediately.
Restore Backup
This function is used to restore the Redis instance to the state when it was backed up. Tencent Cloud does not support restore restore operation
- On the Redis instance details page, click the “Backup List” tab to enter the backup page.
- Click the “Restore” button on the right column of the backup to bring up the operation confirmation dialog.
- Click the “OK” button to complete the operation.
View Redis Instance Monitor
This function is used to view the listening data of a Redis instance.
- On the Redis instance details page, click the Monitoring tab to enter the Monitoring page.
- View the following monitoring information.
- Support viewing performance monitoring information for the last hour, day, week, month, month, and month.
- The monitoring metrics supported for viewing are listed in the table below.
Platform | Metric items supported for viewing |
---|---|
Alibaba Cloud - Redis | CPU usage, Memory usage, Network instantaneous input traffic, Network instantaneous output traffic, Number of active clients, Concurrent operations per second, Total Cache Keys, Total number of expired keys, Datasets used memory |
Huawei Cloud - Redis | CPU usage, Memory usage, Network instantaneous input traffic, Network instantaneous output traffic, Number of active clients, Concurrent operations per second, Total Cache Keys, Total number of expired keys, Datasets used memory |
Tencent Cloud - Redis | CPU usage, Memory usage, Network instantaneous input traffic, Network instantaneous output traffic, Number of active clients, Concurrent operations per second, Total Cache Keys, Total number of expired keys, Datasets used memory |
Azure - Redis | CPU usage, Memory usage, CPU Load Rate, Number of active clients, Connection Error Rate |
View Redis Instance Operation Log
This function is used to view the log information of Redis instance related operations.
- On the Redis instance details page, click the Operation Log tab to enter the Operation Log page.
- Load More Logs: In the Operation Logs page, the list shows 20 operation logs by default. To view more operation logs, click the “Load More” button to get more logs.
- View Log Details: Click the “View” button on the right column of the operation log to view the log details. Copy details are supported.
- View logs of specified time period: If you want to view the operation logs of a certain time period, set the specific date in the start date and end date at the top right of the list to query the log information of the specified time period.
- Export logs: Currently, only the logs displayed on this page are supported to be exported. Click the upper-right corner of icon, set the export data column in the pop-up Export Data dialog box, and click the “OK” button to export the logs.