Yandex.Cloud
  • Services
  • Why Yandex.Cloud
  • Pricing
  • Documentation
  • Contact us
Get started
Yandex Managed Service for Redis
  • Getting started
  • Step-by-step instructions
    • All instructions
    • Information about existing clusters
    • Creating clusters
    • Changing cluster and database settings
    • Connecting to databases
    • Stop and start the cluster
    • Managing hosts in a cluster
    • How to manage shards
    • Managing backups
    • Changing the master
    • Deleting clusters
  • Concepts
    • Overview
    • Host classes
    • Network in Managed Service for Redis
    • Sharding
    • Backups
    • Replication and fault tolerance
    • Supported clients
    • Limitations of Managed Service for Redis
    • Service quotas and limits
  • Access management
  • Pricing policy
    • Current pricing policy
    • Archive
      • Before February 1, 2020
  • API reference
    • Authentication in the API
    • gRPC
      • Overview
      • BackupService
      • ClusterService
      • ResourcePresetService
      • OperationService
    • REST
      • Overview
      • Backup
        • Overview
        • get
        • list
      • Cluster
        • Overview
        • addHosts
        • addShard
        • backup
        • create
        • delete
        • deleteHosts
        • deleteShard
        • get
        • getShard
        • list
        • listBackups
        • listHosts
        • listLogs
        • listOperations
        • listShards
        • move
        • rebalance
        • rescheduleMaintenance
        • restore
        • start
        • startFailover
        • stop
        • streamLogs
        • update
      • ResourcePreset
        • Overview
        • get
        • list
      • Operation
        • Overview
        • get
  • Questions and answers
    • General questions
  1. Getting started

Getting started with Managed Service for Redis

    To use the service, create a cluster and virtual machine to access the server from:

    1. All you need to create a database cluster is a folder in Yandex.Cloud that you are allowed to access. If you already have a folder in Yandex.Cloud, open the page of that folder in the management console. If there is no folder yet, create one:

      1. Click Create folder in the Home page of the management console.

      2. Enter the folder name.

        • Length — from 3 to 63 characters.
        • The name may contain lowercase Latin letters, numbers, and hyphens.
        • The first character must be a letter. The last character can't be a hyphen.
      3. Select Create a default network. A network is created with subnets in each availability zone.

      4. Click Create.

    2. Create a VM (based on Linux or Windows) that you will use for accessing the DB cluster.

    Quickly create a cluster and test your connection to it:

    1. In the management console, select the folder where you want to create a DB cluster.

    2. Select Yandex Managed Service for Redis.

    3. Click Create cluster.

    4. Set the cluster parameters and click Create cluster.

    5. When the cluster is ready, its status on the Managed Service for Redis dashboard will change to RUNNING.

    6. You can connect to the database using the redis-cli program:

      $ redis-cli -h <FQDN of any host> \
                  -p 26379
      $ <host FQDN>:26379> sentinel get-master-addr-by-name <cluster name>
      1) "<master name>"
      2) "6379"
      
      $ redis-cli -h <master FQDN> \
                  -p 6379
      $ <master FQDN>:6379> auth <cluster password>
      OK
      $ <master FQDN>:6379> set foo bar
      OK
      
    Language
    Careers
    Privacy policy
    Terms of use
    © 2021 Yandex.Cloud LLC