2.1. PS 설치
다음 방법 중 한가지 방법으로 perfSONAR를 설치합니다.
를 설치하는 방법을 안내합니다.
패키지 설치
perfSONAR v4 까지는 ISO 파일을 제공하여 OS 설치와 함께 설치할 수 있었습니다.
perfSONAR v5 부터는 ISO는 제공하지 않고 패키지 설치 방법만 제공합니다. 데비안, 레드헷 계열 OS 설치 후, 설치 스크립트를 통해 설치합니다.
Debian 11~12, 우분투 20~24 , RHEL 9 (Rocky, Alma)을 지원합니다.
(참고) https://docs.perfsonar.net/install_options.html
curl -s https://downloads.perfsonar.net/install | sh -s - testpoint
curl -s https://downloads.perfsonar.net/install | sh -s - toolkit
V2P 설치
perfSONAR 가상머신 이미지를 물리머신에 마이그레이션 합니다.
wget http://.../ps5u24.qcow2 qemu-img convert ps5u24.qcow2 -O raw /dev/sdb mount /dev/sdb1 /mnt vi /mnt/etc/hosts vi /mnt/etc/hostname vi /mnt/etc/netplan/network.yaml vi /mnt/etc/perfsonar/lsregistrationdaemon.conf reboot
Docker 설치
perfsonar-testpoint는 docker로 운영할 수 있습니다. 버전은 크게 두가지로 나뉩니다.
- perfsonar/testpoint:latest
- perfsonar/testpoint:systemd
컨테이너는 프로젝트의 라이브러리 의존성과 실행환경을 격리하기 위해 탄생하였습니다. 하지만 perfSONAR 는 네트워크 측정을 위하여, 대역폭 테스트를 수행할 때는 짧은 시간에 최대한 많은 시스템 리소스를 사용하게 되며, 네이티브 호스트와 유사한 환경을 제공하는 것이 좋습니다. 때문에 다음의 구성으로 실행하는 것이 좋습니다.
https://github.com/perfsonar/perfsonar-testpoint-docker/blob/master/docker-compose.systemd.yml
network_mode: host는 최소한의 네트워크 오버헤드와 정확한 네트워크 테스트를 보장합니다.
cgroup: host (볼륨 마운트와 함께)는 적절한 시스템 자원 모니터링과 컨테이너 내 systemd의 완전한 기능을 가능하게 합니다.
docker 로 perfSONAR를 실행한 이후 다음을 .bashrc나 .zshrc에 등록해두면 네이티브로 설치한 것처럼 pscheduler 도구를 사용할 수 있습니다.
alias pscheduler="docker exec -it perfsonar-testpoint pscheduler"
참고
- https://docs.perfsonar.net/install_docker.html
- https://hub.docker.com/u/perfsonar
- https://github.com/perfsonar/perfsonar-testpoint-docker