Manage Aiven for Valkey™ versions
Aiven for Valkey™ supports multiple versions of Valkey running concurrently in the platform. Choose a version that best fits your needs and upgrade your service when ready.
Supported Valkey versions
From version 9.0, Aiven for Valkey supports two major upstream Valkey versions at a time. These are the two latest major versions that are stable on the Aiven Platform. You can select either version when you create a service or upgrade an existing service. If you do not select a version, the default is the latest stable version on the Aiven Platform.
See the supported versions in the Aiven for Valkey version reference.
Before you upgrade
Available or upcoming upgrades
Track upgrades for your service via:
- Aiven Console: Service Overview page > Maintenance section > List of available mandatory and optional upgrades
- Email: notifications for automated upgrades
Downgrade restriction
Downgrading to a previous version is not supported due to potential data format incompatibilities. Always test upgrades in a non-production environment first.
To revert to a previous version:
- Create a service with the desired version.
- Restore data from a backup taken before the upgrade.
- Update your application connection strings.
Prerequisites for upgrade
Before upgrading your service:
- Test in development: Test the upgrade in a development environment first.
- Backup your data: Ensure you have recent backups. Backups are automatic, but verify they exist.
To upgrade your service version, check that:
- Your Aiven for Valkey service is running.
- Target version to upgrade to is available for manual upgrade.
- You can use one of the following tools to upgrade:
Upgrade your service
- Console
- CLI
- API
- Terraform
- Kubernetes
-
In the Aiven Console, go to your Valkey service.
-
On the Overview page, go to the Maintenance section.
-
Click Actions > Upgrade version.
-
Select a version to upgrade to.
warningWhen you click Upgrade:
- The system applies the upgrade immediately.
- You cannot downgrade the service to a previous version.
-
Click Upgrade.
Upgrade the service version using the avn service update command:
avn service update SERVICE_NAME -c valkey_version="N.N"
Parameters:
SERVICE_NAME: Name of your serviceN.N: Target service version to upgrade to, for example9.0
Call the ServiceUpdate
endpoint to set valkey_version:
curl --request PUT \
--url https://api.aiven.io/v1/project/PROJECT_NAME/service/SERVICE_NAME \
--header 'Authorization: Bearer BEARER_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"user_config": {
"valkey_version": "N.N"
}
}'
Parameters:
PROJECT_NAME: Name of your projectSERVICE_NAME: Name of your serviceBEARER_TOKEN: Your API authentication tokenN.N: Target service version to upgrade to, for example9.0
Use the
aiven_valkey
resource to set
valkey_version:
resource "aiven_valkey" "example" {
project = var.PROJECT_NAME
cloud_name = "CLOUD_NAME"
plan = "PLAN_NAME"
service_name = "SERVICE_NAME"
valkey_user_config {
valkey_version = "N.N"
}
}
Parameters:
PROJECT_NAME: Name of your projectCLOUD_NAME: Cloud region identifierPLAN_NAME: Service planSERVICE_NAME: Name of your serviceN.N: Target service version to upgrade to, for example9.0
Use the
Valkey
resource to set
valkey_version:
apiVersion: aiven.io/v1alpha1
kind: Valkey
metadata:
name: SERVICE_NAME
spec:
authSecretRef:
name: aiven-token
key: token
connInfoSecretTarget:
name: valkey-connection
project: PROJECT_NAME
cloudName: CLOUD_NAME
plan: PLAN_NAME
userConfig:
valkey_version: "N.N"
Apply the updated configuration:
kubectl apply -f valkey-service.yaml
Parameters:
PROJECT_NAME: Name of your projectSERVICE_NAME: Name of your serviceCLOUD_NAME: Cloud region identifierPLAN_NAME: Service planN.N: Target service version to upgrade to, for example9.0
Version selection for new services
When creating an Aiven for Valkey service:
- Default version: The latest stable version on the Aiven Platform is the default version.
- Explicit selection: You can specify a version using the
valkey_versionparameter. - Version availability: Only versions in
availablestate can be selected.
Example (CLI):
avn service create SERVICE_NAME \
--service-type valkey \
--plan PLAN_NAME \
--cloud CLOUD_NAME \
-c valkey_version="N.N"
Parameters:
SERVICE_NAME: Name of your servicePLAN_NAME: Service planCLOUD_NAME: Cloud region identifierN.N: Service version, for example8.1
Related pages