Skip to main content

Default template for PDM package

Project description

swautoscale

description

docker-compose.yml 파일 실행후 사이트 부하에 따라 자동으로 운용 도커의 스케일을 늘렸다 줄였다 하는 프로그램

사용법

패키지가 설치되는 곳에서 docker-compose.yml 파일을 실행 패키지 설치 위치는 autoscale 명령어를 사용하면 출력되는 로그 생성 위치와 동일

# 패키지 위치 찾기 위해 실행 
$ autoscale 
패키지 설치된 위치: ~/.pyenv/versions/3.11.9/lib/python3.11/site-packages/k1s
log 저장되는 곳 : ~/.pyenv/versions/3.11.9/lib/python3.11/site-packages/k1s/dockerlog.log

# 패키지 위치로 이동 
$ cd  ~/.pyenv/versions/3.11.9/lib/python3.11/site-packages/k1s

# 파일 실행 
$ docker compose up -d --force-recreate --build
 

기능

자동으로 autoscale

$ autoscale

수동으로 스케일 out

# o + 늘릴 스케일 수 
$ o 1  

수동으로 스케일 in

# o + 줄일 스케일 수 
$ o 1  

내장된 부가기능

(1) LINE_API_KEY 환경변수 설정시 스케일 인/아웃시 메세지 전송 기능

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swautoscale-0.2.0.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

swautoscale-0.2.0-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file swautoscale-0.2.0.tar.gz.

File metadata

  • Download URL: swautoscale-0.2.0.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.18.1 CPython/3.12.4 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for swautoscale-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6c00881793e14cd31ecfe540cfb9d255a939ad7b54e3069ed0bdb3ee964b41cb
MD5 7fedd71a74c5b20e8b2ad1aa513427a5
BLAKE2b-256 40c91a9cccd397d400e5722df9dfb3a3d3f55edca88e0f21de75432dc619c887

See more details on using hashes here.

File details

Details for the file swautoscale-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: swautoscale-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.18.1 CPython/3.12.4 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for swautoscale-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b4c72cd721eb44081244da05dfe04781964a168e85ba3cf805a5ae3c5241fa2
MD5 a1ab67410957a3a64084906b1a72bdc7
BLAKE2b-256 2fae8bfbc5887cbc756a09d01036cbbb3acbc6b7efe78c8d24640640159a8573

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page