Help us understand the problem. What is going on with this article?

ApsaraDB for Redisをクラスタへアップグレードしてみる

More than 1 year has passed since last update.

はじめに

ApsaraDB for Memcacheのアップグレード/ダウングレードを試してみる
と同じように、インスタンスのアップグレードをやってみます。今回は、標準の構成からクラスタもやってみます。

コンソールから変更してみます

326b99bb.png

09a36aa9.png

5a95372c.png

変更前の情報

[root@poc3 ~]# redis-cli -h r-e9b8f0dd3fe80f34.redis.japan.rds.aliyuncs.com
r-e9b8f0dd3fe80f34.redis.japan.rds.aliyuncs.com:6379> info
# Server
redis_version:2.8.19
redis_git_sha1:8cafdff3
redis_git_dirty:1


# Memory
used_memory:39397328
used_memory_human:37.57M
used_memory_rss:5152768
used_memory_peak:39433240
used_memory_peak_human:37.61M
used_memory_lua:36864
mem_fragmentation_ratio:0.13
mem_allocator:jemalloc-3.6.0

# Stats
total_connections_received:458
total_commands_processed:5810
instantaneous_ops_per_sec:7
total_net_input_bytes:222003
total_net_output_bytes:451778
instantaneous_input_kbps:0.28
instantaneous_output_kbps:3.22
input_limit_tokens:31457280
output_limit_tokens:31452526
input_strict_limit:0
output_strict_limit:0
rejected_connections:0
rejected_connections_status:0
sync_full:1
sync_partial_ok:0
sync_partial_err:0
expired_keys:0
evicted_keys:0
evicted_keys_per_sec:0
keyspace_hits:1
keyspace_misses:0
hits_per_sec:0.00
misses_per_sec:0.00
hit_rate_percentage:100.00
pubsub_channels:0
pubsub_patterns:0

stat_avg_rt:0
stat_max_rt:413

# CPU
used_cpu_sys:0.98
used_cpu_user:0.77
used_cpu_sys_children:0.00
used_cpu_user_children:0.00

# Keyspace
db0:keys=1,expires=0,avg_ttl=0

# Cluster
databases:256
nodecount:1

# SSL
ssl_enabled:0
ssl_protocols:TLSv1,TLSv1.1,TLSv1.2
ssl_client_count:0
ssl_accept_count:0
ssl_reject_count:0

変更後の情報

少し瞬断されるようですね。

r-e9b8f0dd3fe80f34.redis.japan.rds.aliyuncs.com:6379> keys *
Error: Connection timed out
[root@poc3 ~]# redis-cli -h r-e9b8f0dd3fe80f34.redis.japan.rds.aliyuncs.com
r-e9b8f0dd3fe80f34.redis.japan.rds.aliyuncs.com:6379> info


# Stats
total_connections_received:686
total_commands_processed:11392
instantaneous_ops_per_sec:20
total_net_input_bytes:430952
total_net_output_bytes:699397
instantaneous_input_kbps:0
instantaneous_output_kbps:2
rejected_connections:0
sync_full:8
sync_partial_ok:0
sync_partial_err:0
expired_keys:0
evicted_keys:0
keyspace_hits:8
keyspace_misses:0
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:2264

# CPU
used_cpu_sys:2.36
used_cpu_user:2.01
used_cpu_sys_children:0.01
used_cpu_user_children:0.00

# Cluster
databases:256
nodecount:8

# Keyspace
db0:keys=1,expires=0,avg_ttl=0
r-e9b8f0dd3fe80f34.redis.japan.rds.aliyuncs.com:6379> get rkey1
"val1"

まとめ

簡単にアップグレードできました。
クラスタにした分Memcacheのときより
台数が起動されクラスタを作るため時間が
かかりましたが、手軽にできていいですね。

おまけ

クラスタから標準デュアルノードはできないようですネ。
f1b234c2.png

alieaters
Alibaba Cloudを上手に使うためのノウハウの共有を目的としたコミュニティ
https://www.alieaters.com
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした