我们在京都大亨上设置了小型设置[Linux上的京都大亨0.9.55(2.18)(京都内阁1.2.75)],这是完全记忆中的DB&与每个共享的主从架构共享3。
目前,我们遇到过期记录的问题,这些记录留在记忆中。内存利用率上升。
当我查看此文档时http://fallabs.com/kyototycoon/spex.html#tips 在那里我找到了" ktremotemgr vacuum"根据描述,它执行完整的GC操作。
但是我正在寻找另一种类似于config参数的方法,它可以解决从内存中删除过期记录的问题。
请提供帮助
由于
答案 0 :(得分:1)
kt
将随机执行此操作,在某些情况下,它基于LRU。是的,mem使用率会持续一段时间。
以下是来自同一链接的一些文档。
In addition, automatic deletion by the capacity limit is performed at random. In that case, fresh records may also be deleted soon. So, setting effectual expiration time not to reach the limit is very important. If you cannot calculate effectual expiration time beforehand, use the cache hash database instead of the default stash database. The following setting is suggested.
$ ktserver '*#bnum=20000000#capsiz=8g'
Note that the space effiency of the cache hash database is worse than that of the stash database. The limit should be up to 50% of the total memory size of the machine. However, automatic deletion by the "capsiz" parameter (not "ktcapsiz") of the cache hash database is based on LRU algorithm, which prevents fresh records from sudden deletion.