Skip to content

Conversation

@singsangssong
Copy link
Contributor

๐Ÿ”— Related Issue

โŒจ๏ธ What I did

๊ธฐ์กด์— engine ์„ค์ •๋งŒ ๊ฐ€๋Šฅํ–ˆ๋˜ config file ์„ค์ • ๊ธฐ๋Šฅ์„ ํ™•์žฅํ•˜์—ฌ, engine์™ธ์˜ ๋‹ค๋ฅธ ์„ค์ •๋„ ํŒŒ์ผ ํ˜•ํƒœ๋กœ ๊ฐ€๋Šฅํ•˜๊ฒŒ ํ•˜๋„๋ก ํ•ฉ๋‹ˆ๋‹ค.
(-e config_file=/config_file1.conf)

  1. ๊ตฌ๋™์‹œ ์˜ต์…˜์„ ์ง์ ‘ ์ „๋‹ฌํ•˜๋Š” ๋Œ€์‹ , config file ๊ฒฝ๋กœ๋ฅผ ์ธ์ž๋กœ ๋„˜๊ฒจ ์ดˆ๊ธฐ ์„ค์ •์„ ์ž๋™์œผ๋กœ ์ ์šฉํ•˜๋„๋ก ํ•ฉ๋‹ˆ๋‹ค.
    (๋Œ€๋ถ€๋ถ„์˜ ํ”„๋กœ๊ทธ๋žจ์—์„œ ์ฐจ์šฉํ•˜๋Š” ๋ฐฉ์‹)
    • main()์‹คํ–‰์‹œ, ๊ตฌ๋™์˜ต์…˜์„ ํ™•์ธํ•˜๊ธฐ ์ „์— ์ฒซ๋ฒˆ์งธ ์ธ์ž๋ฅผ config file๊ฒฝ๋กœ๋ฅผ ์ธ์‹ํ•˜๋„๋ก ๊ธฐ๋Šฅ์„ ํ™•์žฅํ•ฉ๋‹ˆ๋‹ค.
./memcached /path/to/arcus.conf
  1. try_load_config_file()์„ ๊ตฌํ˜„ํ•˜์—ฌ, .confํŒŒ์ผ์„ ๋ผ์ธ ๋‹จ์œ„๋กœ ์ฝ์–ด์„œ ๋ชจ๋“  ๊ฐ’์„ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.

    • getopt์˜ optind๋ฅผ ๋™์ ์œผ๋กœ ์กฐ์ •ํ•˜์—ฌ config file๊ณผ ๊ตฌ๋™์˜ต์…˜์„ ํ˜ผ์šฉํ• ๋•Œ, ๊ตฌ๋™ ์˜ต์…˜๊ฐ’์ด ๋ฎ์–ด์”Œ์–ด์ง€๋„๋ก ํ•ฉ๋‹ˆ๋‹ค.
  2. https://github.com/jam2in/arcus-works/issues/808 ๋ฅผ ํ†ตํ•œ old_opts ์ค‘๋ณต ํ•ด๊ฒฐ

    • ๊ธฐ์กด์—๋Š” getopt(๊ตฌ๋™์˜ต์…˜๊ฐ’ ์„ค์ •)๋ฃจํ”„ ๋‚ด์—์„œ settings ์ „์—ญ ๊ตฌ์กฐ์ฒด์™€ old_opts ๋ฌธ์ž์—ด ์ƒ์„ฑ์„ ๋™์‹œ์— ์ˆ˜ํ–‰ํ•˜๊ธฐ์—, config file๊ณผ ๊ตฌ๋™์˜ต์…˜์„ ๋™์‹œ์— ์ˆ˜ํ–‰ํ•˜๋ฉด old_opts์— ์ค‘๋ณต๋œ ๊ฐ’์ด ๋“ค์–ด๊ฐ”์Šต๋‹ˆ๋‹ค.
    • ์ด์— config_file๊ณผ ๊ตฌ๋™์˜ต์…˜ ๋ชจ๋‘ settings ์ „์—ญ ๊ตฌ์กฐ์ฒด๋งŒ ์—…๋ฐ์ดํŠธ๋ฅผ ์ˆ˜ํ–‰ํ•˜๊ณ , ํŒŒ์‹ฑ์ดํ›„์— old_opts ๋ฌธ์ž์—ด์„ ์ž‘์„ฑํ•˜๋„๋ก ํ–ˆ์Šต๋‹ˆ๋‹ค.

@singsangssong singsangssong force-pushed the task/config branch 3 times, most recently from e3f1fad to 8e7a0ae Compare November 19, 2025 03:08
@ing-eoking ing-eoking self-requested a review November 19, 2025 07:41
@ing-eoking ing-eoking marked this pull request as draft November 20, 2025 06:42
@singsangssong singsangssong force-pushed the task/config branch 4 times, most recently from fcbee46 to 59f4850 Compare November 21, 2025 04:30
@ing-eoking ing-eoking marked this pull request as ready for review November 21, 2025 05:07
@singsangssong singsangssong force-pushed the task/config branch 2 times, most recently from 48127cd to 98e554d Compare November 21, 2025 06:23
@singsangssong singsangssong force-pushed the task/config branch 2 times, most recently from a532173 to 333add5 Compare November 21, 2025 08:52
@ing-eoking
Copy link
Collaborator

ํ˜น์‹œ ์ด๋ฒˆ PR๊ณผ ๋น„๊ตํ•ด๋ณผ ์ˆ˜ ์žˆ๋„๋ก, try_load_config_file ํ•จ์ˆ˜๋ฅผ ๋”ฐ๋กœ ๋ถ„๋ฆฌํ•˜์ง€ ์•Š๊ณ  ๋กœ์ง์„ main์— ์ง์ ‘ ๊ตฌํ˜„ํ•œ ๊ฒฝ์šฐ๋„ ํ•œ ๋ฒˆ ๋งŒ๋“ค์–ด ๋ณผ ์ˆ˜ ์žˆ์„๊นŒ์š”?

@singsangssong
Copy link
Contributor Author

ํ˜„์žฌ ์ปค๋ฐ‹์€ ๋”ฐ๋กœ ํ•จ์ˆ˜๋ฅผ ๋ถ„๋ฆฌํ•˜์ง€ ์•Š๊ณ , main๋‚ด์— ๋ชจ๋“  ์ฝ”๋“œ๋ฅผ ๋„ฃ์€ ๊ตฌ์กฐ์ž…๋‹ˆ๋‹ค.
๋งŒ์•ฝ ์ด์ „์ฒ˜๋Ÿผ ํ•จ์ˆ˜๋กœ ๋ฌถ์–ด๋‘” ๊ฒƒ์ด ๋” ๊ฐ€๋…์„ฑ์ด ๋†’๋‹ค๋ฉด ์ด์ „ ์ปค๋ฐ‹์œผ๋กœ ๋ณต๊ตฌ์‹œ์ผœ๋‘๊ฒ ์Šต๋‹ˆ๋‹ค.

@ing-eoking

This comment was marked as resolved.

@ing-eoking

This comment was marked as resolved.

@singsangssong singsangssong force-pushed the task/config branch 2 times, most recently from 5761bf0 to 73b5bb1 Compare November 26, 2025 03:18
ing-eoking

This comment was marked as resolved.

@ing-eoking ing-eoking requested a review from jhpark816 November 26, 2025 08:17
@jhpark816
Copy link
Collaborator

@namsic
๋ณธ PR์€ ์ธํ„ฐํŽ˜์ด์Šค์— ๊ด€ํ•œ ๋‚ด์šฉ์ด๋ผ, ๋ฆฌ๋ทฐํ•˜๋Š” ๊ฒƒ์ด ์ข‹๊ฒ ์Šต๋‹ˆ๋‹ค.

Copy link
Collaborator

@jhpark816 jhpark816 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๋ฆฌ๋ทฐ ์™„๋ฃŒ

@jhpark816
Copy link
Collaborator

@namsic ๋ฆฌ๋ทฐ ๋ฐ”๋ž๋‹ˆ๋‹ค.

Copy link
Collaborator

@namsic namsic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ํ˜„์žฌ PR์€ ๊ธฐ์กด ๋ช…๋ นํ–‰ ์˜ต์…˜์„ ๊ทธ๋Œ€๋กœ ์„ค์ • ํŒŒ์ผ ํ˜•ํƒœ๋กœ ์ œ๊ณตํ•˜๋Š” ๋ฐ ์ง‘์ค‘ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.

์„ค์ • ํŒŒ์ผ์—์„œ๋Š” ๋ช…๋ นํ–‰ ์˜ต์…˜์— ๋น„ํ•ด ์ƒ๋Œ€์ ์œผ๋กœ ๊ตฌ์กฐ์ ์ธ ํ˜•ํƒœ๋ฅผ ํ‘œํ˜„ํ•˜๊ธฐ๊ฐ€ ์šฉ์ดํ•˜๋ฏ€๋กœ
์žฅ๊ธฐ์ ์ธ ๊ด€์ ์—์„œ ์„ค์ • ํŒŒ์ผ ๊ตฌ์กฐ์— ๋Œ€ํ•œ ๋ช‡ ๊ฐ€์ง€ ์ƒ๊ฐ๋‚˜๋Š” ๋ฐฉ์•ˆ์„ ๊ณต์œ ํ•ฉ๋‹ˆ๋‹ค.
(์•„๋ž˜์™€ ๊ฐ™์€ ์„ค๊ณ„ ๋ฐฉ์•ˆ์ด ๊ผญ ์ข‹๋‹ค๋Š” ๊ฒƒ์€ ์•„๋‹™๋‹ˆ๋‹ค.)

engine ๊ด€๋ จ ์„ค์ •

  • AS-IS: ์•„๋ž˜์™€ ๊ฐ™์ด -e option์ด ๊ทธ๋Œ€๋กœ ๋งคํ•‘๋˜๊ณ  ์žˆ์Œ
    engine_config=data_path=/tmp/data,log_path=/tmp/log
  • TO-BE: engine config์„ ๋ฐ”๋กœ ์ž…๋ ฅํ•  ์ˆ˜ ์žˆ๋„๋ก ๋ณ€๊ฒฝ
# [ core ]
port=11211
username=jam2in

# [ engine ]
maxbyte=100
engine_data_path=/tmp/data
engine_log_path=/tmp/log

# [ replication ]
โ€ฆ

# [ migration ]
โ€ฆ

extension ๊ด€๋ จ ์„ค์ •

  • AS-IS: extensionN=/xxx.so ์ž…๋ ฅ ์‹œ ํ™œ์„ฑํ™”
  • TO-BE: enable ์„ค์ • ์‚ฌ์šฉ + extension ์ „์šฉ ์„ค์ • ์ถ”๊ฐ€ ๊ฐ€๋Šฅ
# [ ascii_scrub ]
ext_ascii_scrub_enable=true # default=false
# false์ด๋ฉด ์•„๋ž˜ ๋ชจ๋“  ext_ascii_scrub_xxx ์„ค์ •์„ ๋ฌด์‹œ
ext_ascii_scrub_path=/tmp/ascii_scrub.so # default=(empty)
# empty์ด๋ฉด ๊ธฐ๋ณธ ํƒ์ƒ‰ ๊ฒฝ๋กœ(system path)์—์„œ ํƒ์ƒ‰
ext_ascii_scrub_xxx=... # ๊ธฐํƒ€ extension์—์„œ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•œ ์„ค์ •๋“ค

๊ธฐํƒ€

  • vervose=1 ๋Œ€์‹  log_level=info์™€ ๊ฐ™์ด ์ž…๋ ฅ ๊ฐ€๋Šฅํ•˜๋„๋ก ๋ณ€๊ฒฝ

@ing-eoking
Copy link
Collaborator

@namsic

engine ๋ฐ extension์˜ ๋‚ด๋ถ€ ์„ค์ •๊นŒ์ง€ ํ˜„์žฌ PR์˜ ์„ค์ • ํŒŒ์ผ๋กœ ์ œ์–ดํ•˜์ž๋Š” ์˜๊ฒฌ์œผ๋กœ ๋ณด์ž…๋‹ˆ๋‹ค. ๋‹ค๋งŒ ์ด ๊ธฐ๋Šฅ์€ ์ถ”ํ›„ ํ™•์žฅ ํฌ์ธํŠธ๋กœ ๊ณ ๋ คํ•  ์ˆ˜๋Š” ์žˆ์œผ๋‚˜, ํ˜„์žฌ ๋‹จ๊ณ„์—์„œ ํฌํ•จํ•ด์•ผ ํ•˜๋Š” ์š”์†Œ๋Š” ์•„๋‹ˆ๋ผ๋Š” ์ƒ๊ฐ์ž…๋‹ˆ๋‹ค.

engine ๊ด€๋ จ ์„ค์ •

ํ˜„์žฌ ์—”์ง„ ํƒ€์ž…(default, gust, squall ๋“ฑ)๋งˆ๋‹ค ๋‹ค๋ฅธ ์„ค์ • ์ธ์ž๋ฅผ ๊ฐ–๊ณ  ์žˆ๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ๋ชจ๋“  ์—”์ง„ ํƒ€์ž…์˜ ์ธ์ž๋ฅผ ์„ค์ • ํŒŒ์ผ์—์„œ ์ผ๊ด„์ ์œผ๋กœ ์ง€์›ํ•˜๋Š” ๋ฐฉ์‹๋ณด๋‹ค๋Š” ์˜คํžˆ๋ ค ์„ค์ • ํŒŒ์ผ์„ ์—”์ง„๋ณ„๋กœ ๋ถ„๋ฆฌํ•˜๊ณ  ๊ฒฝ๋กœ๋งŒ ์ง€์ •ํ•˜๋Š” ์ง€๊ธˆ์˜ ํ˜•ํƒœ๊ฐ€ ๋” ์ž์—ฐ์Šค๋Ÿฌ์šด ํ˜•ํƒœ๋ผ ์ƒ๊ฐ๋ฉ๋‹ˆ๋‹ค.

extension ๊ด€๋ จ ์„ค์ •

extension์˜ ๊ฒฝ์šฐ ascii_scrub, syslog_logger ๋“ฑ ๊ธฐ๋ณธ์ ์œผ๋กœ ์ œ๊ณต๋˜๋Š” ํ•ญ๋ชฉ์ด ์žˆ์ง€๋งŒ, ์‚ฌ์šฉ์ž๊ฐ€ ์ง์ ‘ ์ปค์Šคํ…€ extension์„ ๊ตฌํ˜„ํ•˜์—ฌ ์ถ”๊ฐ€ํ•˜๋Š” ๊ฒƒ๋„ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค. ์ด๋Ÿฌํ•œ ํ™•์žฅ์„ฑ์„ ๊ณ ๋ คํ•  ๋•Œ, ์„ค์ • ํŒŒ์ผ์—์„œ ํŠน์ • extension๋งŒ ์‚ฌ์šฉํ•˜๋„๋ก ์ œํ•œํ•˜๋Š” ๊ฒƒ์€ ๋ฐ”๋žŒ์งํ•˜์ง€ ์•Š์•„ ๋ณด์ž…๋‹ˆ๋‹ค.

Copy link
Collaborator

@jhpark816 jhpark816 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ผ๋ถ€ ๋ฆฌ๋ทฐ

{ .key = "require_sasl", .datatype = DT_BOOL, .value.dt_bool = &settings.require_sasl },
#endif
{ .key = NULL }
};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default ์„ค์ • ํŒŒ์ผ๋„ ์ž˜ ์ •๋ฆฌํ•˜์—ฌ PR์— ์˜ฌ๋ ค์ฃผ์„ธ์š”.

memcached.c Outdated
{ .key = "zookeeper", .datatype = DT_STRING, .value.dt_string = (char**)&arcus_zk_cfg },
{ .key = "zk_timeout", .datatype = DT_UINT32, .value.dt_uint32 = (uint32_t*)&arcus_zk_to },
#ifdef PROXY_SUPPORT
{ .key = "proxy_config", .datatype = DT_STRING, .value.dt_string = &arcus_proxy_cfg },
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ผ๋ถ€ ์„ค์ •์€ settings์— ์žˆ๊ณ , ๋‹ค๋ฅธ ์„ค์ •์€ ๋ณ„๋„์˜ ๋ณ€์ˆ˜๋กœ ๋ฐ›๊ณ  ์žˆ๋Š” ๋ฐ์š”.
settings์— ๋ชจ๋‘ ์ถ”๊ฐ€ํ•˜๋Š” ๊ฒƒ์ด ๋‚˜์€ ๋ฐฉํ–ฅ์ธ๊ฐ€์š”?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ „์—ญ ์„ค์ •์œผ๋กœ ํ†ตํ•ฉํ•˜๋Š”๊ฒŒ ๋” ๊น”๋”ํ•œ ๊ตฌ์กฐ์ผ ์ˆ˜ ์žˆ์œผ๋‚˜, ๊ธฐ์กด ๋กœ์ง์˜ ๋ณ€๊ฒฝ์ ๋„ ๋งŽ์•„์งˆ๊ฑฐ๋ผ ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค.
settings์˜ ๋ณ€์ˆ˜๋ฅผ ์ •๋ฆฌํ•˜๋Š” ์ด์Šˆ๋ฅผ ๋ณ„๋„๋กœ ์ง„ํ–‰ํ•˜๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

@singsangssong singsangssong force-pushed the task/config branch 2 times, most recently from 2e06180 to d70546f Compare December 2, 2025 06:05
Copy link
Collaborator

@ing-eoking ing-eoking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jhpark816 @singsangssong

์—ฌ๊ธฐ ์ฝ”๋“œ๋ฅผ ๋ณ„๋„ ํ•จ์ˆ˜๋กœ ๋ถ„๋ฆฌํ•˜๋Š” ๊ฒƒ์ด ์ข‹๊ฒ ์Šต๋‹ˆ๋‹ค.

ํ˜„์žฌ config ํŒŒ์ผ ์„ค์ •์„ ๋ชจ๋“ˆ/ํ•จ์ˆ˜ํ™”ํ•˜๋ฉด ๋น„๊ต์  ๊น”๋”ํ•˜์ง€ ์•Š์€ ํ˜•ํƒœ์ธ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.
ํ›„์† PR๋กœ main ํ•จ์ˆ˜์˜ ๋กœ์ปฌ ๋ณ€์ˆ˜๋“ค์„ settings๋กœ ์ด๋™ํ•˜๊ณ , ๋ชจ๋“ˆ/ํ•จ์ˆ˜ํ™”ํ•˜๋Š” ๋ฐฉํ–ฅ์€ ์–ด๋–ค๊ฐ€์š”?

arcus.conf Outdated
# udpport=0

# The IP address of the network interface to listen on.
# 0.0.0.0 means listen on all available interfaces (INADDR_ANY).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default๊ฐ€ INADDR_ANY์ž„์„ ํฌํ•จ

arcus.conf Outdated
# Adjusting this value also adjusts the slab page size.
item_size_max=1m

# Action to take when memory is exhausted. (Default: false)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์„ค๋ช…์ด ๋ฐ˜๋Œ€๋กœ ๋œ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. Default ๊ฐ’์€ true ์ด๋ฉฐ, eviction์ด false์ด๋ฉด ์•„์ดํ…œ์ด ๊ฐ€๋“ ์ฐจ๋ฉด ์—๋Ÿฌ๋ฅผ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.

arcus.conf Outdated
# Recommended value: > 10 and < 20000 (check internal implementation limits).
# zk_timeout=3000

# Proxy configuration (if compiled with proxy support)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ด๋Š” proxy support๋Š” ๋นŒ๋“œ ๊ณผ์ •์—์„œ ํฌํ•จ๋˜๋Š” ์˜ต์…˜์€ ์•„๋‹ˆ๋ฏ€๋กœ if complied with proxy support ์„ค๋ช…์€ ์ œ๊ฑฐํ•ด๋„ ๋ฉ๋‹ˆ๋‹ค.

arcus.conf Outdated
Comment on lines 83 to 84
# These options control the behavior of the Arcus storage engine,
# including Collection features (List, Set, Map, B+Tree).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ด ์ฃผ์„์€ ์ œ๊ฑฐํ•ด๋„ ๋  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

arcus.conf Outdated
prefix_delimiter=:

# Enable detailed stats collection. (Default: false)
# Automatically enabled if 'prefix_delimiter' is set.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ด ์ฃผ์„์€ ์ œ๊ฑฐํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

arcus.conf Outdated
# pid_file=/var/run/memcached.pid

# Verbose logging level. (Default: 3)
# 0 = Detail, 1 = Debug, 2 = Info, 3 = Warning
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์—ฌ๊ธฐ์„œ verbosity ๊ฐ’์€ ๋ฐ˜๋Œ€์ž…๋‹ˆ๋‹ค.
0 = Warning, 1 = Info, 2 = Debug, 3 = Detail

arcus.conf Outdated
verbosity=3

# Limit the size of the core file. (Default: 0)
# Used for debugging purposes to allow core dumps.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"ํ•ด๋‹น ๊ฐ’์€ 0(false) ๋˜๋Š” 1(true)์˜ ๊ฐ’์„ ๊ฐ€์ง„๋‹ค." ๋ผ๋Š” ์˜๋ฏธ๋ฅผ ๋„ฃ์œผ๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

arcus.conf Outdated
# zk_timeout=3000

# Proxy configuration (if compiled with proxy support)
# proxy_config=...
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์˜ˆ์‹œ๋Š” ip:port ํ˜•์‹์ด๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

Copy link
Collaborator

@ing-eoking ing-eoking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๊ทธ๋ฃน์— ๋”ฐ๋ผ ๋ถ„๋ฅ˜๋˜๋Š” ํ˜•ํƒœ๋กœ ๋ณ€๊ฒฝ์ด ๊ฐ€๋Šฅํ• ๊นŒ์š”?

์˜ˆ๋ฅผ ๋“ค์–ด Network ๊ด€๋ จ ์„ค์ • ๋ถ€๋ถ„๋ผ๋ฆฌ ๋ถ„๋ฅ˜ํ•˜๊ณ  ๋ชจ์•„๋‘๋Š” ํ˜•ํƒœ๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

arcus.conf Outdated
# Recommended value: > 10 and < 20000 (check internal implementation limits).
# zk_timeout=3000

# Proxy configuration (if compiled with proxy support)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ํ•ด๋‹น ๋ถ€๋ถ„๋„ Zookeeper Support ์‹œ ๊ฐ€๋Šฅํ•œ ๊ฑธ๋กœ ๋‚ด์šฉ์„ ๋ณ€๊ฒฝํ•˜๋Š” ํŽธ์ด ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

arcus.conf Outdated
memory_limit=64M

# Maximum size of a single item. (Default: 1m)
# Supports K and M suffixes. Min: 1k, Max: 128m.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ด ๋ถ€๋ถ„๋„ kmgt ๋ชจ๋‘ ์ง€์›ํ•˜๋ฏ€๋กœ ์ œ์™ธํ•ด๋„ ๋ฉ๋‹ˆ๋‹ค. ์ตœ๋Œ€ ์ตœ์†Œ ์„ค๋ช…๋งŒ ๋„ฃ์–ด๋„ ์ถฉ๋ถ„ํ•  ๊ฒƒ์œผ๋กœ ๋ณด์ž…๋‹ˆ๋‹ค.

arcus.conf Outdated
# extension1=/usr/local/lib/logger.so
# extension2=/usr/local/lib/management.so

# Settings required
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ํ•ด๋‹น ์ค„ ์ œ๊ฑฐ

arcus.conf Outdated

# Chunk size growth factor between slab classes. (Default: 1.25)
# Controls the size increase of chunks in subsequent slab classes.
factor=1.25
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1๋ณด๋‹ค ํฐ ๊ฐ’์„ ๊ฐ€์ ธ์•ผ ํ•œ๋‹ค๋Š” ์„ค๋ช…์ด ์žˆ์œผ๋ฉด ์ข‹๊ฒ ์Šต๋‹ˆ๋‹ค.


if (settings.verbose > 0) {
perform_callbacks(ON_LOG_LEVEL, NULL, NULL);
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sticky limit์ด 0๋ณด๋‹ค ํฌ๋ฉด 1024 * 1024๋ฅผ ๊ณฑํ•˜๋Š” ๊ฒƒ๋„ ํ•„์š”ํ•  ๊ฒƒ์œผ๋กœ ๋ณด์ž…๋‹ˆ๋‹ค.

arcus.conf Outdated

# Assume the identity of <username> (drops root privileges).
# Effectively switches the user after starting.
# username=nobody
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์˜ˆ์‹œ๋Š” root๋กœ ํ•˜๋Š”๊ฒŒ ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

@singsangssong
Copy link
Contributor Author

์•„๋ž˜ ๊ตฌ์กฐ๋กœ ๋ถ„๋ฅ˜ํ•˜๊ณ˜์Šต๋‹ˆ๋‹ค. ๊ตฌ์กฐ๋ฅผ ๋ณ€๊ฒฝํ•˜๊ณ ์‹ถ์œผ์‹  ์˜ต์…˜์ด ์žˆ๋‹ค๋ฉด ๋ง์”€ํ•ด์ฃผ์„ธ์š”.

  1. General & Process
    • engine_paht
    • daemonize
    • pid_file
    • username
    • maxcore
  2. Network & Connection
    • port
    • udpport
    • listen
    • socketpath
    • access
    • maxconns
    • backlog
    • protocol
    • required_sasl
  3. Memory & Storage
    • memory_limit
    • eviction
    • item_size_max
    • factor
    • chunk_size
    • sticky_limit
    • preallocate
    • lock_memory
  4. Performance & Tuning
    • threads
    • reqs_per_event
    • use_cas
  5. Logging & Statistics
    • verbosity
    • prefix_delimiter
    • detail_enabled
    • allow_detailed
  6. Extensions & Modules
    • extension1...5
    • engine_config
  7. Zookeeper Support
    • zookeeper
    • zk_timeout
    • proxy_config

@ing-eoking
Copy link
Collaborator

@singsangssong

use_cas๋ž‘ engine_config ๋ถ€๋ถ„๋งŒ Memory & Storage ์ชฝ์œผ๋กœ ์ด๋™ํ•˜๋ฉด ๋  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants