Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config_file 기능 확장 #663

Open
namsic opened this issue Feb 3, 2023 · 1 comment
Open

config_file 기능 확장 #663

namsic opened this issue Feb 3, 2023 · 1 comment
Assignees

Comments

@namsic
Copy link
Collaborator

namsic commented Feb 3, 2023

engines/default/default_engine.c 파일의 initialize_configuration() 함수를 확인해 주세요.
default engine에 설정 부분이 있고, 이 부분을 engine 외부로 옮겼으면 합니다.
이 부분을 포함하여 전체 config 설정의 틀을 정리할 수 있다면 좋겠습니다.
(그러면서 기존 arcus-memcached 자체 설정에 대한 backward compatibility 보장하고요)

  • arcus-memcached 자체의 설정
  • engine 설정
  • 그 외의 설정은?

현재 engine 설정의 경우 -e config_file=/config_file1.conf 형태의 구동 옵션을 사용하면 파일을 통한 설정이 가능합니다.
이를 확장하여 engine 외 다른 설정 또한 파일 형태로 설정이 가능하도록 합니다.

@namsic namsic self-assigned this Feb 3, 2023
@namsic namsic changed the title config 기능 확장 config_file 기능 확장 Feb 3, 2023
@ing-eoking
Copy link
Collaborator

ing-eoking commented Nov 3, 2023

memcached의 구동 옵션에 대한 파일 기능 확장

현재는 switch 문에서 구동옵션과 관련된 각각의 변수들마다 따로 처리가 이루어졌지만

switch(opt){
case 'a':
  /* access process code */
case 'E':
  /* engine process code */

/* etc */
}

파일을 파싱하게 될 경우 해당 방식이 불가능하므로

각각의 변수들마다의 처리에 대한 논의가 필요하다고 생각됩니다.

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

No branches or pull requests

2 participants