Valkey Cluster
作者 pcloudhosting
Version 9.1.0 + Free Support on Ubuntu 24.04
Valkey Cluster 9.1.0 is an open-source, high-performance, in-memory key-value datastore designed for caching, session storage, real-time workloads, queues, and distributed database use cases. Valkey Cluster provides horizontal scalability by distributing data across multiple Valkey nodes.
The solution supports common Valkey Cluster workflows including distributed key-value storage, automatic data sharding, replication, high availability, persistence, and command-line based administration. It is suitable for cloud-native applications, caching layers, session management, message queues, and high-performance backend workloads on Azure.
Product Type: Database / Cache / In-memory Key-Value Datastore
Version: Valkey Cluster 9.1.0
Features of Valkey Cluster 9.1.0:
- Open-source, high-performance in-memory key-value datastore.
- Cluster mode support for horizontal scaling and automatic sharding.
- Multi-node deployment with primary and replica nodes.
- Supports caching, session storage, queues, and real-time application workloads.
- Persistence support using Append Only File configuration.
- Command-line administration using valkey-cli.
- Suitable for development, testing, staging, and production-style Azure deployments.
Installation process for Valkey Cluster 9.1.0
$ sudo su
$ apt update && apt upgrade -y
$ apt install -y ca-certificates curl gnupg lsb-release
$ install -m 0755 -d /etc/apt/keyrings
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
$ chmod a+r /etc/apt/keyrings/docker.gpg
$ echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo $VERSION_CODENAME) stable" > /etc/apt/sources.list.d/docker.list
$ apt update
$ apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
$ systemctl enable docker
$ systemctl start docker
$ mkdir -p /opt/valkey-cluster
$ cd /opt/valkey-cluster
$ docker compose up -d
Cluster creation command
$ cd /opt/valkey-cluster
$ PRIVATE_IP=$(hostname -I | awk '{print $1}')
$ echo yes | docker run -i --rm --network host valkey/valkey:9.1 valkey-cli --cluster create ${PRIVATE_IP}:7000 ${PRIVATE_IP}:7001 ${PRIVATE_IP}:7002 ${PRIVATE_IP}:7003 ${PRIVATE_IP}:7004 ${PRIVATE_IP}:7005 --cluster-replicas 1
Testing instructions for Valkey Cluster 9.1.0
$ docker ps
$ docker exec -it valkey-7000 valkey-cli -c -p 7000 cluster info
$ docker exec -it valkey-7000 valkey-cli -c -p 7000 cluster nodes
$ docker exec -it valkey-7000 valkey-cli -c -p 7000 set testkey "Valkey Cluster Working"
$ docker exec -it valkey-7001 valkey-cli -c -p 7001 get testkey
$ docker exec -it valkey-7000 valkey-server --version
Access Information
Valkey Cluster is managed using the command-line interface. Connect to a node: docker exec -it valkey-7000 valkey-cli -c -p 7000 Check cluster status: docker exec -it valkey-7000 valkey-cli -c -p 7000 cluster info Default cluster ports: 7000-7005 Cluster bus ports: 17000-17005 SSH port: 22
Credentials: Valkey Cluster does not use a default web login username or password. Access is managed through SSH, Azure Network Security Group rules, and Valkey CLI configuration. Users should configure authentication, firewall rules, and secure access settings before production use.
Disclaimer: Valkey Cluster 9.1.0 is provided “as is” under applicable open-source licenses. Users are responsible for proper configuration, secure networking, authentication setup, backup planning, data validation, and production hardening. This solution is suitable for deploying and testing Valkey Cluster workloads on Azure environments.