# Aptos Validator AIT接続 **Published by:** [qyeah](https://paragraph.com/@qyeah/) **Published on:** 2022-05-23 **URL:** https://paragraph.com/@qyeah/aptos-validator-ait ## Content 1. 目的Aptosでは、報酬付きテストネット (AIT)としてテストネットでのValidatorの運用者に報酬が付与されます。 AIT1 ~ AIT4の合計4期間が用意されており、各期間ごとに参加者数が決められています。 合格者には、24時間以内にAITに接続することが要求され、接続を実施しないと報酬が付与されない仕組みになっています。 ここでは、DockerによりValidatorを構築した人向けにAIT接続方法を解説します。 Node運用に慣れている方や、Engineerの方はなるべく公式サイトを確認ください。参考 : Connecting to Aptos Incentivized Testnethttps://aptos.dev/tutorials/validator-node/connect-to-testnet2. AIT接続方法2-1. Install方法2-1-1. サーバにログインする 2-1-2. Rootユーザ (特権ユーザ)になるsudo su - cd $HOME 2-1-3. installerをダウンロード & 実行wget -O connect-ait.sh https://raw.githubusercontent.com/qyeah98/aptos/main/validator/connect-ait.sh && chmod +x connect-ait.sh && ./connect-ait.sh 2-1-4. この画面が出れば完了です2-2. 正常に動作しているかの確認2-2-1. Peer数確認 下記のコマンドを実行curl 127.0.0.1:9101/metrics 2> /dev/null | grep "aptos_connections{.*\"Validator\".*}" 下記のように0以上になっていることを確認してください例 aptos_connections{direction="inbound",network_id="Validator",peer_id="2a40eeab",role_type="validator"} 5 aptos_connections{direction="outbound",network_id="Validator",peer_id="2a40eeab",role_type="validator"} 2 2-2-2. Aptos LabsのNodeに接続しているかの確認 下記のコマンドの実行 の箇所を、Aptosより通知を受けたAddressに変更してください curl 127.0.0.1:9101/metrics 2> /dev/null | grep "aptos_network_peer_connected{.*remote_peer_id=\"\".*}" 2-2-3. consensus数の確認 下記のコマンドの実行 curl 127.0.0.1:9101/metrics 2> /dev/null | grep "aptos_consensus_current_round" 再度実行して、数値がカウントアップしていることを確認してください 2-3. 報酬条件を満たすための重要な指標 下記の3つの項目が、補修を受け取るための条件となっています。 AIT1の場合にはテスト期間中に、95%以上の可用性を求められます。 aptos_consensus_proposals_count aptos_state_sync_version{type="synced"} aptos_connections 定期的に上記の数値を確認してください。 curl 127.0.0.1:9101/metrics 2> /dev/null | grep "aptos_consensus_proposals_count" curl 127.0.0.1:9101/metrics 2> /dev/null | grep "aptos_state_sync_version{type=\"synced\"}" curl 127.0.0.1:9101/metrics 2> /dev/null | grep "aptos_connections" 3. まとめ 以上でValidatorのAIT接続は完了です。 Nodeのinstallの際には、私が作成したinstallerを使用しています。 どのように動いているのか興味がある人は、下記のGithubのリンクよりご確認ください。 https://github.com/qyeah98/aptos ## Publication Information - [qyeah](https://paragraph.com/@qyeah/): Publication homepage - [All Posts](https://paragraph.com/@qyeah/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@qyeah): Subscribe to updates