Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Team-PinLog
back
Repository navigation
Code
Issues
2
(2)
Pull requests
2
(2)
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
dev
Breadcrumbs
back
/
compose.bench.yaml
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
23 lines (23 loc) · 1.13 KB
dev
Breadcrumbs
back
/
compose.bench.yaml
Copy path
Top
File metadata and controls
Code
Blame
23 lines (23 loc) · 1.13 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 벤치 측정용 자원 한도 override (S15P11A705-283). 평소 개발에서는 쓰지 않는다.
#
# docker compose -f compose.yaml -f compose.bench.yaml up -d postgres
#
# 로컬 Docker는 메모리를 15.37GiB까지 열어 두어 천만 행(약 13GB)도 대부분 OS 페이지
# 캐시에 들어간다 — 캐시 적중률 99.99%에서는 인덱스 깊이도 디스크 I/O도 드러나지 않는다.
# cgroup 메모리 한도는 페이지 캐시를 함께 계산하므로, 이 한도가 데이터/메모리 비율을
# 운영과 같은 형태로 만든다. 값은 운영 StatefulSet과 같다
# (infra/platform/postgres/statefulset.yaml: memory 1Gi · cpu 1).
#
# **적재(seed-massive.sql)는 이 override 없이 돌린다.** 인덱스 재생성이
# maintenance_work_mem 256MB를 쓰므로 1Gi 한도 안에서는 느려진다. 순서는
# 「기본 compose로 적재 → 이 override를 얹어 재기동 → 측정」이다(loadtest/README.md).
#
# 되돌리기: override 없이 다시 올리면 끝이다.
# docker compose up -d postgres
services:
postgres:
deploy:
resources:
limits:
memory: 1g
cpus: "1"
You can’t perform that action at this time.