안녕하세요 모두의 노드 목짧은기린입니다.
오늘은 지난번 포스팅했던 Ritual 노드 셋업가이드의 3부 입니다.
기존 0.1.0 버전에서 0.2.0 버전으로 업데이트가 진행되었는데요, 조금 복잡하긴 하지만 어렵지 않으니 천천히 진행해주세요!
※이 글은 Ritual 가이드 1,2부를 진행하셨다는 전제 하에 작성되었습니다.
AI 컴퓨팅 플랫폼! Ritual 노드 가이드
안녕하세요 모두의 노드 기린입니다. 오늘은 Ritual 노드 구동 매뉴얼 입니다. 바로 시작해 보겠습니다. 우선 Contabo 에서 Ubuntu 22.0.4 설치가 되어 있다는 가정 하에 진행하겠습니다. (Contabo 설치 메
modu-node.tistory.com
Ritual 2부_가스비 과다지출 해결
안녕하세요 모두의 노드 목짧은기린입니다. 오늘은 지난번 포스팅했던 Ritual 노드 셋업가이드의 후속인데, 구독자분들 중 B님이 다음과 같이 Deliver Compute 관련 Tx Fail 과 이로인한 과다한 가스비
modu-node.tistory.com
출처 : 메타부님 블로그 https://metaboo.tistory.com/52
다만 메타부님 방법은 Filezilla FTP를 이용해 구독자분들 중 이에 익숙치 않으신 분들이 어려움을 겪고 계시는데요,
이 포스팅에서는 비교적 익숙한 Contabo VPS의 Putty창에서 바로 수정할 수 있게 풀어서 작성해보았습니다.
또 기타명령어는 이해하기 쉽게 조금 더 풀어서 써 놓았습니다.
Step1. 현재 버전 확인
#현재버전 확인 |
cd /root/infernet-node/
|
nano version.txt |
Step2. config.json 확인 및 백업
#백업폴더 생성 |
cd /root |
mkdir ritualbackup
|
#기존 config.json 파일 열어서 내부 내용 메모장에 복사
|
cd /root/infernet-container-starter/projects/hello-world/container
|
nano config.json |
RPC URL, Private Key 등 Ritual 2부에서 수정했던 내용이 정상인지 확인해줍니다.
config.json 파일안의 모든 내용을 마우스로 드래그해서 copy, 메모장에 붙여넣어줍니다.
완료 후 Ctrl + X → Y → 엔터 로 나오기
#기존 config.json 백업
|
cp config.json /root/ritualbackup
|
#make deploy-container 진행하기 |
cd /root/infernet-container-starter/
|
project=hello-world make deploy-container
|
Ctrl + C 로 종료 → 모든 Container 가 stop 된 것을 확인
Step3. docker / screen 종료
#모든 docker 종료
|
docker stop $(docker ps -q)
|
docker ps |
docker ps 입력 시 다음과 같이 아무런 정보 없이 위의 항목들만 나와야 합니다.
#infernet-container-starter 폴더 삭제
|
cd /root |
rm -rf infernet-container-starter
|
#Screen 종료 |
screen -ls |
#해당 Screen 이름 Kill (@에 본인 스크린 이름 입력) 예를들어 하기 좌측 사진에서 25072.ritual ~~~ 이 나오는데, 여기서 screen -X -S 25072 kill 또는 screen -X -S ritual kill 로 스크린을 종료할 수 있습니다. |
screen -X -S @ kill
|
예시)저의 경우는 아래와 같음
|
screen -X -S ritual kill
|
Step4. 신규버전 다운로드
#신규버전 다운로드
|
#신규로 생성된 폴더 내의 config.sample.json 파일 수정
|
cd /root/infernet-node
|
nano config.sample.json
|
우선 delete 키를 쭉 눌러서 모든 정보를 지워줍니다.
그리고 아까 Step2에서 기존 config.json 파일에서 복사해두었던 내용도 같이 준비해 줍니다.
아래에서 빨간색 부분만 수정해 주면 됩니다. 헷갈리시면 무조건 기존에 본인의 config.json 파일 참고하시면 됩니다!
[간단설명]
rpc_url : 기존에 발급했던 Alchemy Https URL
coordinator_address: 기존 config.json에서 입력했던 주소 참고
private key : 본인의 메타마스크 Private Key
docker의 username / password : 따로 설정한 것이 없다면 기존 파일 참고allowed address : 2부에서 설정했던 본인의 Deployed Say Hello 주소, 헷갈리면 기존 config.json 참
하단 선 두개 사이의 내용을 복사해서 메모장에 붙여넣어주세요.
{
"log_path": "infernet_node.log",
"manage_containers": true,
"server": {
"port": 4000
},
"chain": {
"enabled": true,
"trail_head_blocks": 5,
"rpc_url": "https://base-mainnet.g.alchemy.com/v2/J_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"coordinator_address": "0x5xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"wallet": {
"max_gas_limit": 5000000,
"private_key": "0x8xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
},
"snapshot_sync": {
"sleep": 5,
"batch_size": 100
},
"docker": {
"username": "your-username",
"password": ""
},
"redis": {
"host": "redis",
"port": 6379
},
"forward_stats": true,
"startup_wait": 1.0,
"containers": [
{
"id": "hello-world",
"image": "ritualnetwork/hello-world-infernet:latest",
"external": true,
"port": "3000",
"allowed_delegate_addresses": [],
"allowed_addresses": ["0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"],
"allowed_ips": [],
"command": "--bind=0.0.0.0:3000 --workers=2",
"env": {}
}
]
}
위의 내용을 아까 모든 내용을 지워버렸던 config.sample.json에 붙여넣기 해주세요.
완료 후 Ctrl + X → Y → 엔터 로 나오기
#예시파일을 config.json 파일로 이름바꿔 복사해주기
|
cp config.sample.json config.json
|
#deploy 폴더에 config.json 파일 복사해주기(한줄씩 입력)
|
tag="0.2.0" |
docker build -t ritualnetwork/infernet-node:$tag .
|
cd deploy |
cp /root/infernet-node/config.json config.json
|
Step5. docker 재시작
#docker 시작 |
docker compose up -d
|
docker ps |
위와 같이 container ID 4개가 올라오면 정상입니다!
Alchemy에서 Request Health가 올라오는지까지 확인해주시면 끝입니다.
혹시 중간에 막히거나 어려운 점 있으시다면 아래 텔레그램방으로 공유 주세요.
긴 글 읽어주셔서 감사합니다!
블로그 주소 : https://modu-node.tistory.com/
인스타그램 : https://www.instagram.com/trader_sng/
텔레그램(모두의 노드) : https://t.me/modu_node/
'노드 운영' 카테고리의 다른 글
(2부)Artela 노드 가이드 (1) | 2024.03.17 |
---|---|
Ritual 2부_가스비 과다지출 해결 (2) | 2024.03.12 |
(1부)극초기 선점가능! Artela 노드 가이드 (5) | 2024.03.05 |
사람들이 모르는 Grass 모바일 채굴 꿀팁(단순 키위브라우저 사용아님!) (6) | 2024.03.05 |
에어드랍 가능! Nulink 노드 가이드(인센티브 Testnet) (0) | 2024.03.03 |