Skip to content

Option "expire_items_per_iter" does not work #16

@zhka

Description

@zhka
  1. I set expire_items_per_iter=1000 and run
$echo "flush_all" | nc 127.0.0.1 11211
OK

Tarantool removes 50 records per second.
2. I found a typo in init.lua script:

--- a/memcached/init.lua
+++ b/memcached/init.lua
@@ -236,7 +236,7 @@ local stat_table = {
 local conf_table = {
     readahead            = ffi.C.MEMCACHED_OPT_READAHEAD,
     expire_enabled       = ffi.C.MEMCACHED_OPT_EXPIRE_ENABLED,
-    expire_items_per_item= ffi.C.MEMCACHED_OPT_EXPIRE_COUNT,
+    expire_items_per_iter = ffi.C.MEMCACHED_OPT_EXPIRE_COUNT,
     expire_full_scan_time= ffi.C.MEMCACHED_OPT_EXPIRE_TIME,
     verbosity            = ffi.C.MEMCACHED_OPT_VERBOSITY,
     protocol             = ffi.C.MEMCACHED_OPT_PROTOCOL

After fixing tarantool uses 100% CPU and do not remove anything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions