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

[persistence] 체크포인트 수행 조건 및 비동기 로깅(async logging) 모드의 동적 변경 기능 개발 #384

Closed
SuhwanJang opened this issue Jan 9, 2020 · 2 comments
Assignees
Labels

Comments

@SuhwanJang
Copy link
Contributor

SuhwanJang commented Jan 9, 2020

체크포인트 수행 조건 및 명령 로깅 모드를 동적으로 설정하는 기능을 개발한다.

  • 체크포인트 수행 조건
    • 스냅샷 파일 대비 명령 로그 파일 크기 증가율(%)
    • 최소 명령 로그 파일 크기(MB)
  • 명령 로깅 모드 : 동기 / 비동기

#345

@SuhwanJang SuhwanJang self-assigned this Jan 9, 2020
@SuhwanJang SuhwanJang pinned this issue Jan 9, 2020
@SuhwanJang SuhwanJang unpinned this issue Jan 9, 2020
@jhpark816 jhpark816 changed the title [persistence] 체크포인트 수행 조건 및 명령 로깅 모드 동적 설정 기능 개발 [persistence] 체크포인트 수행 조건 및 비동기 로깅(async logging) 모드의 동적 변경 기능 개발 Oct 4, 2020
@naver naver deleted a comment from Johyeyoung Jan 4, 2021
@SuhwanJang
Copy link
Contributor Author

config 명령에 체크포인트 수행 조건과 명령 로깅 모드 설정 가능하도록 추가해주시면 됩니다.
사용 및 출력 결과는 아래와 같습니다.

// 사용법 조회

help admin 
    ...
    config zkfailstop [on|off]\r\n
    config chkpt_interval_pct_snapshot [<percentage(%)>]\r\n
    config chkpt_interval_min_logsize [<minsize(MB)>]\r\n
    config async_logging [on|off]\r\n

// 스냅샷 파일 대비 명령 로그 파일 크기 증가율 조회

config chkpt_interval_pct_snapshot
chkpt_interval_pct_snapshot 100
END

// 스냅샷 파일 대비 명령 로그 파일 크기 증가율 변경

config chkpt_interval_pct_snapshot 80
END

다른 설정도 위와 같이 처리하고, 위 설정 변경과 사용법 조회 결과에는 --enable-persistence configure 옵션 컴파일한 경우에만 정상 동작합니다.

@SuhwanJang
Copy link
Contributor Author

체크포인트 수행 조건 및 명령 로깅 모드를 동적으로 설정하는 기능이 추가되었습니다.
commit : e80ed62

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants