Learn how to change the datacenter location for your Vultr Managed Apache Kafka® deployment
Vultr Managed Apache Kafka® enables customers to switch their Kafka database to any of Vultr’s 32 global data center locations. Users can easily select a new location to enhance performance and reduce latency based on their operational needs. This straightforward interface allows for seamless transitions between data centers, ensuring customers can optimize their data streaming capabilities and maintain efficient connectivity across regions.
Follow this guide to change datacenter locations for Vultr Managed Apache Kafka® using Vultr Customer Portal, API, CLI, or Terraform.
List all the databases by sending a GET
request to the List Managed Databases endpoint and note the target database's ID.
$ curl "https://api.vultr.com/v2/databases" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a PUT
request to the Update Managed Database endpoint to change the datacenter location.
$ curl "https://api.vultr.com/v2/databases/<database-id>" \
-X PUT \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"region" : "blr"
}'
List all databases and note the target database's ID.
$ vultr-cli database list --summarize
Change the datacenter location.
$ vultr-cli database update <database-id> --region="blr"
Run vultr-cli database update --help
to view all options.
Open your Terraform configuration and locate the Managed Apache Kafka® resource.
Update the region
on your Kafka resource and apply.
resource "vultr_database" "kafka" {
label = "kafka-cluster-1"
database_engine = "kafka"
database_engine_version = "3.7"
region = "blr" # New region
plan = "vultr-dbaas-business-3x-occ-so-2-200-4"
}
Apply and observe:
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
No comments yet.