Com2us Platform · FinOps
드래곤스카이 인프라 비용 62% 절감
매출 지표와 인프라 비용을 연동해 모니터링하고 Python으로 불필요 리소스를 매일 자동 탐지해 인프라 비용을 최대 62% 줄였습니다.
- 역할
- Cloud Engineer · 메인 엔지니어
- 기간
- 2023.02 – 2026.02
- CSP
- Azure
- 규모
- 서버 10대 · DB 5개
- 핵심 기술
- Azure · Python · Billing monitoring
- - 62 %
- 인프라 비용 최대 절감
- 10
- 서버
- 5
- DB
한눈에 보기
문제
게임 매출 대비 인프라 비용 비율이 높아 수익성에 문제가 있었습니다.
접근
매출 지표와 인프라 비용을 연동해 함께 모니터링했습니다. Python으로 전 CSP의 불필요 리소스를 매일 자동 탐지했습니다.
결과
인프라 비용을 최대 62% 절감했습니다.
자세히 보기
미사용 자원 찾기 (관련 공개 저장소 pf-05)
이 코드가 하는 일: 연결되지 않은 IP와 보안그룹을 찾는 AWS 코드입니다. 이 프로젝트의 운영 코드가 아니라 관련 공개 저장소의 코드입니다.
for account, region, client in provider.regional("ec2"):
base = {"cloud": "AWS", "project": account.name, "project_id": account.account_id, "region": region}
for address in client.describe_addresses()["Addresses"]:
if not address.get("InstanceId") and not address.get("AssociationId"):
label = (
f"{_name(address)} ({address.get('AllocationId')} / {address.get('PublicIp')})".strip()
)
records.append(UnusedResource(resource_type="IP", resource=label, **base))
for group in client.describe_security_groups()["SecurityGroups"]:
if _excluded(group["GroupName"], rules):
continue
used = client.describe_network_interfaces(
Filters=[{"Name": "group-id", "Values": [group["GroupId"]]}]
)["NetworkInterfaces"]
if not used:배운 점
비용을 매출과 같은 기준에서 보니, 어떤 리소스가 수익성에 영향을 주는지 판단하기 쉬워졌습니다.
다음에 개선할 점
탐지 이후 정리 승인까지 이어지는 흐름을 만들어 비용 누수 대응을 더 빠르게 하고 싶습니다.