How to Change Datacenter Locations for Vultr Managed Apache Kafka®

Updated on November 27, 2024

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, and CLI.

  • Vultr Customer Portal
  • Vultr API
  • Vultr CLI
  1. Navigate to Products and select Databases.

    Database selection products menu

  2. Select the target database.

    Selecting a target database

  3. Navigate to Settings, and select Datacenter Location.

    Open the locations page

  4. Select a Data Center, and click Change Location.

    change datacenter location

  1. List all the databases by sending a GET request to the List Managed Databases endpoint and note the target database's ID.

    console
    $ curl "https://api.vultr.com/v2/databases" \
        -X GET \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  2. Send a PUT request to the Update Managed Database endpoint to change the datacenter location.

    console
    $ 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"
    }'
    
  1. List all databases and note the target database's ID.

    console
    $ vultr-cli database list --summarize
    
  2. Change the datacenter location.

    console
    $ vultr-cli database update <database-id> --region="blr"
    

    Run vultr-cli database update --help to view all options.