Thesys-lab / Segcache

Other
113 stars 13 forks source link

proplem in running pelikan_twemcache #10

Open hoody17 opened 1 year ago

hoody17 commented 1 year ago

when i run Segche/_build/_bin/pelikan_twemcache like this,it shows some config information and end, how can i fix it $ ./pelikan_twemcache twemcache.conf load config from twemcache.conf set up the ccommon::log module Set up the ccommon::debug module create logger with filename twemcache.log cap 1048576 create logger with filename twemcache.cmd cap 2097152 name: daemonize type: boolean current: no ( default: no ) name: pid_filename type: string current: NULL ( default: NULL ) name: dlog_intvl type: unsigned int current: 500 ( default: 500 ) name: klog_intvl type: unsigned int current: 100 ( default: 100 ) name: stats_intvl type: unsigned int current: 100 ( default: 100 ) name: admin_host type: string current: NULL ( default: NULL ) name: admin_port type: string current: 9999 ( default: 9999 ) name: admin_timeout type: unsigned int current: 100 ( default: 100 ) name: admin_nevent type: unsigned int current: 1024 ( default: 1024 ) name: admin_tw_tick type: unsigned int current: 10 ( default: 10 ) name: admin_tw_cap type: unsigned int current: 1000 ( default: 1000 ) name: admin_tw_ntick type: unsigned int current: 100 ( default: 100 ) name: server_host type: string current: NULL ( default: NULL ) name: server_port type: string current: 12321 ( default: 12321 ) name: server_timeout type: unsigned int current: 100 ( default: 100 ) name: server_nevent type: unsigned int current: 1024 ( default: 1024 ) name: worker_timeout type: unsigned int current: 100 ( default: 100 ) name: worker_nevent type: unsigned int current: 1024 ( default: 1024 ) name: worker_binding_core type: unsigned int current: 4294967295 ( default: 4294967295 ) name: allow_flush type: boolean current: no ( default: no ) name: prefill type: boolean current: no ( default: no ) name: prefill_ksize type: unsigned int current: 32 ( default: 32 ) name: prefill_vsize type: unsigned int current: 32 ( default: 32 ) name: prefill_nkey type: unsigned int current: 400000000 ( default: 400000000 ) name: klog_file type: string current: twemcache.cmd ( default: NULL ) name: klog_backup type: string current: twemcache.cmd.old ( default: NULL ) name: klog_nbuf type: unsigned int current: 2097152 ( default: 2097152 ) name: klog_sample type: unsigned int current: 100 ( default: 100 ) name: klog_max type: unsigned int current: 1073741824 ( default: 1073741824 ) name: hotkey_enable type: boolean current: no ( default: no ) name: hotkey_sample_size type: unsigned int current: 10000 ( default: 10000 ) name: hotkey_sample_rate type: unsigned int current: 100 ( default: 100 ) name: hotkey_threshold_ratio type: double current: 0.010000 ( default: 0.010000 ) name: request_poolsize type: unsigned int current: 0 ( default: 0 ) name: response_poolsize type: unsigned int current: 0 ( default: 0 ) name: slab_size type: unsigned int current: 1048576 ( default: 1048576 ) name: slab_mem type: unsigned int current: 4294967296 ( default: 67108864 ) name: slab_prealloc type: boolean current: yes ( default: yes ) name: slab_evict_opt type: unsigned int current: 1 ( default: 1 ) name: slab_use_freeq type: boolean current: yes ( default: yes ) name: slab_profile type: string current: NULL ( default: NULL ) name: slab_item_min type: unsigned int current: 44 ( default: 44 ) name: slab_item_max type: unsigned int current: 1048552 ( default: 1048552 ) name: slab_item_growth type: double current: 1.250000 ( default: 1.250000 ) name: slab_item_max_ttl type: unsigned int current: 2592000 ( default: 2592000 ) name: slab_use_cas type: boolean current: yes ( default: yes ) name: slab_hash_power type: unsigned int current: 22 ( default: 16 ) name: slab_datapool type: string current: NULL ( default: NULL ) name: slab_datapool_name type: string current: slab_datapool ( default: slab_datapool ) name: slab_datapool_prefault type: boolean current: no ( default: no ) name: time_type type: unsigned int current: 2 ( default: 2 ) name: array_nelem_delta type: unsigned int current: 16 ( default: 16 ) name: buf_init_size type: unsigned int current: 16384 ( default: 16384 ) name: buf_poolsize type: unsigned int current: 0 ( default: 0 ) name: dbuf_max_power type: unsigned int current: 8 ( default: 8 ) name: debug_log_level type: unsigned int current: 4 ( default: 4 ) name: debug_log_file type: string current: twemcache.log ( default: NULL ) name: debug_log_nbuf type: unsigned int current: 1048576 ( default: 0 ) name: buf_sock_poolsize type: unsigned int current: 0 ( default: 0 ) name: stats_log_file type: string current: NULL ( default: NULL ) name: stats_log_nbuf type: unsigned int current: 0 ( default: 0 ) name: tcp_backlog type: unsigned int current: 128 ( default: 128 ) name: tcp_poolsize type: unsigned int current: 0 ( default: 0 ) Tear down the ccommon::debug module tear down the ccommon::log module

running other executes in _bin/ has the same problem

1a1a11a commented 1 year ago

what is the problem?

hoody17 commented 1 year ago

it shows some config information and end the process, so it can't be connected with telnet.

1a1a11a commented 1 year ago

are you looking for the binary with Memcached interface or the trace_replay tool?

hoody17 commented 1 year ago

i want to run segcache as a server, can Segche/_build/_bin/pelikan_segcache work?

1a1a11a commented 1 year ago

If you need a server, then take a look at https://github.com/pelikan-io/pelikan