Closed ing-eoking closed 1 month ago
zookeeper μ¬μ©νλ μμ©μ μλμ κ°μ΄ νΈμΆνμ¬ zk handleμ 리ν΄λ°μ΅λλ€. κ·Έλ¦¬κ³ , zk handleμ κ°μ§κ³ zookeeper μ°μ°μ νΈμΆν©λλ€.
zinfo->zh = zookeeper_init(zinfo->ensemble_list, arcus_zk_watcher,
arcus_conf.zk_timeout, &zinfo->myid, zinfo, 0);
default_topkeysλ λ§μ°¬κ°μ§λ‘ topkeys κΈ°λ₯ μ¬μ©μ λν handle κ°μ κ°λ
μ
λλ€.
λ°λΌμ, μ΄λ topkeys κΈ°λ₯μ μ¬μ©νλ μμ©μΈ memcached.c
νμΌμ μλ κ²μ΄ μ μμ
λλ€.
if (settings.topkeys > 0) {
default_topkeys = topkeys_init(settings.topkeys);
}
@jhpark816
νμ¬λ default_topkeysλ§ μ¬μ© μ€μΈλ°, κ·ΈλΌμλ topkeys_init ν¨μκ° μ¬λ¬ topkeys handlerλ₯Ό λ°ννλλ‘ κ΅¬νλ κ²μ, λ€μν νΈλ€λ¬λ₯Ό μ¬μ©ν μ μλ μν©μ κ³ λ €ν κ²μΈκ°μ?
topkeys κΈ°λ₯μ΄ λ€μν νΈλ€(handle)μ κ°μ§ μ μλλ‘ κ΅¬νλ κ²μΈμ§λ₯Ό νμΈνμ§ μμ μνμ΄λ―λ‘, νλ² λ΄ μ£ΌμΈμ. μ¬νΌ, topkeys κΈ°λ₯μ νμ¬ μ¬μ©λ²μΌλ‘ 보면, νΈλ€μ μμ©μμ κ°μ§κ³ μλ κ²μ΄ λ§λ€λΌλ κ²μ λλ€.
μ¬νΌ, topkeys κΈ°λ₯μ νμ¬ μ¬μ©λ²μΌλ‘ 보면, νΈλ€μ μμ©μμ κ°μ§κ³ μλ κ²μ΄ λ§λ€λΌλ κ²μ λλ€.
κΈ°μ‘΄ λ‘μ§μ΄ λ§λ λ°©ν₯μ΄λ―λ‘ νμ¬ PRμ λ«κ² μ΅λλ€.
π Related Issue
β¨οΈ What I did
default_topkeys
λ³μλ₯Ό memcached.c μμ topkey.c λ‘ μ΄λμν΅λλ€.