Repository navigation
Docs: keep the inode when editing the running IAM nginx.conf for the 504 timeout fix - #243
Merged
Merged
Conversation
실행 중 nginx.conf 는 nginx 컨테이너에 단일 파일 bind mount 되어 있어 sed -i 로 수정하면 inode 가 바뀌어 reload 해도 반영되지 않는다. 수정본을 cat > 로 덮어써 inode 를 유지한 뒤 reload 하도록 절차를 바꾸고, nginx -T 로 적용값을 확인하는 단계와 sed -i 를 이미 쓴 경우 restart 안내를 추가한다.
docs: readme 설명 보완 nginx.conf 수정 시 inode 유지
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.
What's Changed
README: keep the inode when editing the running IAM nginx.conf (504 Known Issues)
The Known Issues step for raising
proxy_read_timeouton a running installation usedsed -ifollowed bynginx -s reload. The generatednginx.confis bind-mounted intomc-iam-manager-nginxas a single file (./container-volume/mc-iam-manager/nginx/nginx.conf:/etc/nginx/nginx.conf:ro).sed -ireplaces the file with a new inode, so the container keeps reading the old content and the reload has no effect.README.md/README_kr.md(Known Issues, IAM nginx 504):cat >so the file keeps its inode, then runnginx -t && nginx -s reloadnginx -T | grep proxy_read_timeoutsed -i(or an editor that replaces the file),docker restart mc-iam-manager-nginxis needed instead of reloadVerified locally with
nginx:1.25-alpineand a single-file bind mount:sed -i+ reload kept the old value,docker restartapplied the new value, andcat >+ reload applied the new value.