Steem Engine on ARM
Steem Engine을 ARM에서 돌리는 게 가능한지 알아보고 있습니다.
어제 Hive Engine 코드를 arm에서 빌드해봤는데, 실패했다고 알려드렸는데요,
오늘 작업을 해서 빌드 성공하고, 동작하는 로그가 나왔습니다.
hive-engine 소스 그대로를 docker 이미지로 만들어서 실행해봤습니다.
이 때, mongodb가 필요한데, 이것도 docker image로 실행시키도록 했습니다.
docker-compose.yml 파일
version: '3.7'
services:
steemcore:
build: .
volumes:
- /node_modules
- .:/steemcore
database:
image: mongo:4.4.8
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DATA=/dev/null
volumes:
- "mongodb_data:/data/db"
- ./mongod.conf:/etc/mongod.conf
ports:
- 27017:27017
command: "mongod --logpath=/dev/null"
volumes:
mongodb_data:
external: false
이렇게 하고 컨테이너를 실행하니 아래와 같은 로그가 지속적으로 발생합니다. 동기화가 진행되는 것으로 보이네요.
Hive-Engine 로그
steemcore_1 | Node block fetch average for https://hived.emre.sh is 1054.111111111111 with 9 requests
steemcore_1 | Node block fetch average for https://rpc.ausbit.dev is 1020.7777777777778 with 9 requests
steemcore_1 | Node block fetch average for https://api.hive.blog is 292.8666666666667 with 30 requests
steemcore_1 | Node block fetch average for https://api.openhive.network is 1164.125 with 8 requests
steemcore_1 |
steemcore_1 | 2021-09-17 13:51:44 info: [Streamer] head_block_number 57504084 currentBlock 41967002 Hive blockchain is 15537082 blocks ahead
steemcore_1 | Node block fetch average for https://api.deathwing.me is 1019.8888888888889 with 9 requests
steemcore_1 | Node block fetch average for https://rpc.ecency.com is 233.13513513513513 with 37 requests
steemcore_1 | Node block fetch average for https://hived.emre.sh is 1054.111111111111 with 9 requests
steemcore_1 | Node block fetch average for https://rpc.ausbit.dev is 1020.7777777777778 with 9 requests
steemcore_1 |
steemcore_1 | 2021-09-17 13:51:44 info: [Streamer] Node block fetch average for https://api.hive.blog is 292.8666666666667 with 30 requests
steemcore_1 | Node block fetch average for https://api.openhive.network is 1164.125 with 8 requests
steemcore_1 |
steemcore_1 | 2021-09-17 13:51:55 info: [Streamer] head_block_number 57504088 currentBlock 41967002 Hive blockchain is 15537086 blocks ahead
steemcore_1 | Node block fetch average for https://api.deathwing.me is 1019.8888888888889 with 9 requests
steemcore_1 |
steemcore_1 | 2021-09-17 13:51:55 info: [Streamer] Node block fetch average for https://rpc.ecency.com is 233.13513513513513 with 37 requests
steemcore_1 | Node block fetch average for https://hived.emre.sh is 1054.111111111111 with 9 requests
steemcore_1 | Node block fetch average for https://rpc.ausbit.dev is 1020.7777777777778 with 9 requests
steemcore_1 | Node block fetch average for https://api.hive.blog is 292.8666666666667 with 30 requests
steemcore_1 | Node block fetch average for https://api.openhive.network is 1164.125 with 8 requests
arm에서도 hive-engine이 돌아간다는 것을 확인했습니다.
이제 steem engine 설정값으로 바꿔서 해볼예정입니다.
cc.
@steemcurator01