feat: runtime-log-archive/#268 - #269
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
변경 내용
innolive-server의 전체 런타임 로그를 매일과 배포 재시작 직전에 서버의 보관 디스크로 날짜별 파일로 옮긴다. journald는 용량 상한에서 오래된 로그부터 지우므로, 장애 조사용 원본을 따로 남긴다.deploy/log-archive.sh: journald →/srv/innolive-logs/innolive-server-YYYY-MM-DD.log.zst(하루 한 파일, root:adm 640)deploy/innolive-log-archive.{service,timer}: 매일 00:10,Persistent=true, 최저 CPU·IO 우선순위.deploy/apply-release.sh: 세션 게이트·이미지 pull 뒤, 태그 교체·재시작 직전에 보관 실행. 실패해도 배포는 진행(원본은 journald에 남음), 출력은 상세 로그에만 — stdout 출력 계약 유지.deploy/README.md: 보관 디스크 준비(미사용 sda에 파티션 생성), 설치, 확인·열람 절차.확인 방법
/dev/shm로 지정):apply-release.sh추가 줄을set -euo pipefail에서 단독 실행: 스크립트가 없어도 stdout 출력 없음, 실패는 상세 로그에만 기록되고 다음 단계 진행bash -n전 스크립트 통과systemd-analyze verify(서버): 유닛 문법 오류 없음(미설치 스크립트 경로 경고만), 타이머 다음 실행2026-09-24 00:10 KSTdaemon-reload, 사전 보관본 복사를 첫 실행 앞으로 이동deploy/는 서버에 자동 동기화되지 않는다. 머지 후deploy/README.md의 순서대로:sgdisk -p,wipefs -n)으로 빈 디스크인지 먼저 본다apply-release.sh는 현재 레포와 md5 일치(drift 없음) 확인함 — 그대로 교체 가능Closes #268
🤖 Generated with Claude Code