Valkey - Get started
How to provision a Valkey PaaS?
To get started, go to ITCare and search for your target global service where you will create your new Valkey deployment.
Search for your Global Service in the top search bar and click on it to display its information page.
Once in your Global Service, click on the Create Resource button, select Valkey and the required version.
Fill out the form:
Select a topology
Define the name of the future deployment
The sizing
The storage required on each instance
The target location
The target network
Management options (backup, monitoring, 24/7, remote site replication)
Click Next once the fields have been filled in.
At the customization stage:
Enter the administrator account password that will be provided
Select the required persistence options
Enable or disable TLS encryption
Then click Next.
Passwords are not saved by cegedim.cloud.
Be sure to save your password!
Review the summary before submitting the form.
Provisioning may take up to 2 hours depending on the current automation load.
Once the deployment is ready, you will be notified by email.
How to connect to a standalone Valkey instance?
This code describes how to connect to Valkey when the topology is a single instance. This code is deliberately simplified (errors are not handled) and is intended for demonstration purposes only.
The Python language is used. We assume that the Valkey instance is named pcluvlk01.hosting.cegedim.cloud.
How to connect to a Valkey cluster?
This code describes how to connect to Valkey when the topology is Cluster (with Sentinel). It has been deliberately simplified (errors are not handled) and is intended for demonstration purposes only.
The Python language is used.
We assume that the Valkey cluster is named my-cluster with a prefix pclu. There are therefore 3 machines:
pcluvlk01.hosting.cegedim.cloud
pcluvlk02.hosting.cegedim.cloud
pcluvlk03.hosting.cegedim.cloud
Two examples are provided, with and without TLS.
Python example without TLS
```python from valkey.sentinel import Sentinel import valkey
def main(): try: mySentinel = Sentinel( [ (‘pcluvlk01.hosting.cegedim.cloud’, 26379), (‘pcluvlk02.hosting.cegedim.cloud’, 26379), (‘pcluvlk03.hosting.cegedim.cloud’, 26379) ], sentinel_kwargs={ ‘username’: ‘valkey’, ‘password’: ‘1MyStrongPassword!’, ‘socket_connect_timeout’: 0.5 } )
Last updated

