Valkey

清夏晚风 Lv7

简介

Valkey 是一款高性能数据结构服务器,主要服务键值工作负载。它支持多种原生结构和可扩展的插件系统,用于添加新的数据结构和访问模式。

同时,也是Redis项目转向新源代码许可之前从开源 Redis 项目分支出来的。

仓库地址:https://github.com/valkey-io/valkey.git

常见问题

Valkey内存过提交问题

1
2
3
4
5
6
1:signal-handler (1782625023) Received SIGTERM scheduling shutdown...
1:M 28 Jun 2026 05:37:03.867 # Valkey is now ready to exit, bye bye...
monotonic: x86 linux, 'constant_tsc' flag not present1:M 28 Jun 2026 05:37:04.195 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
1:signal-handler (1782625249) Received SIGTERM scheduling shutdown...
1:M 28 Jun 2026 05:40:49.117 # Valkey is now ready to exit, bye bye...
monotonic: x86 linux, 'constant_tsc' flag not present1:M 28 Jun 2026 05:40:49.401 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.

在宿主机上开启overcommit_memory

1
2
echo "vm.overcommit_memory = 1" >> /etc/sysctl.conf
sysctl -p
  • Title: Valkey
  • Author: 清夏晚风
  • Created at : 2026-06-29 09:43:35
  • Updated at : 2026-07-19 01:57:11
  • Link: https://blog.yuil.cn/2026/06/29/数据库相关/Valkey/Valkey/
  • License: This work is licensed under CC BY-NC-SA 4.0.
Comments