Skip to main content

Spark-worker의 CPU 사용량을 확인하며 Scale in/out을 할 수 있는 dashboard를 제공합니다.

Project description

spark-dash

usage

  1. Run streamlit
$ run-dashboard
 
  Local URL: http://localhost:8501
  Network URL: http://172.31.41.91:8501
  1. Explore dashboard
    1. main dashboard

      a. 현재 spark 관련 container의 CPU 및 MEM 사용량을 보여줍니다.

      b. 자동 Scale in/out까지 시간 진행률(60초 중에 얼마나 왔는지)

      c. 수동 Scale in/out 버튼

    2. Scale log dashboard

      a. 데이터를 나타낼 log file 선택

      b. 선택된 log file을 DataFrame으로 표출

      c. 선택된 log file에서 시간별 Worker의 수를 line plot으로 표출

      d. 선택된 log file에서 Scale In/Out이 일어난 횟수를 bar plot으로 표출

    3. Usage log dashboard


      a. 데이터를 나타낼 log file 선택

      b. 선택된 log file을 DataFrame으로 표출

      c. 선택된 log file에서 CPU 사용량을 line plot으로 표출

      d. 선택된 log file에서 현재 CPU 사용상태를 bar plot으로 표출

Configure

$ cat config.ini
[limit]
max_cpu_use=1   # 10%
min_cpu_use=1   # 10%

[scale]
min_cnt=1
max_cnt=10

scale in/out이 일어나는 cpu %와 최대/최소 worker의 갯수를 config.ini 파일에 지정

dependency

streamlit>=1.40.1
matplotlib>=3.9.2
schedule>=1.2.2
tz-kst>=0.5.3

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

spark_dash-0.3.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spark_dash-0.3.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file spark_dash-0.3.0.tar.gz.

File metadata

  • Download URL: spark_dash-0.3.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.19.3 CPython/3.11.9 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for spark_dash-0.3.0.tar.gz
Algorithm Hash digest
SHA256 035297a04a13035206c6bfde482aa11aae3657947b6d2a2958297392322c6971
MD5 1ee39fd2bac60946cc1b62c1bd3cfde4
BLAKE2b-256 b38fb6a3a3da2fd7bd1f0dff935de6c7b34e54a5745f332831776fa5070abc24

See more details on using hashes here.

File details

Details for the file spark_dash-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: spark_dash-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.19.3 CPython/3.11.9 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for spark_dash-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 86ef5e77900c0a001165bed061a62d9582a9eaf255929fdbe8db69a15eb34597
MD5 5aceddfa7b7d977f5cbf48e8f9a5854b
BLAKE2b-256 d8ecbcef0654f6058d68b4dea2ebe6f4fbf3744f044e93d9c9accbd93c66600c

See more details on using hashes here.

Supported by

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