GithubHelp home page GithubHelp logo

isabella232 / infra-role-waku-peers Goto Github PK

View Code? Open in Web Editor NEW

This project forked from status-im/infra-role-waku-peers

0.0 0.0 0.0 8 KB

Ansible role for connecting Waku peers

Home Page: https://github.com/status-im/nim-waku

Python 100.00%

infra-role-waku-peers's Introduction

Description

This role runs a Python script to:

  • Query Consul catalog for specified services
  • Call JSON RPC API to connect the peers
  • Verifies the node has connected peers

Configuration

Bare minimum would include:

nim_waku_connect_consul_service_names: ['nim-waku-v2', 'go-waku']
nim_waku_connect_consul_service_env: 'example'
nim_waku_connect_consul_service_stage: 'prod'

Usage

The script can be used manually:

 > /usr/local/bin/nim_waku_connect.py -n nim-waku -e status -s test -l debug
2022-03-10 15:43:29,686 [INFO] Connecting to Consul: localhost:8500
2022-03-10 15:43:29,692 [INFO] Found 5 data centers.
2022-03-10 15:43:29,697 [DEBUG] Service: node-01.do-ams3.status.test (env:status,stage:test,nim,waku,libp2p)
2022-03-10 15:43:29,939 [DEBUG] Service: node-01.gc-us-central1-a.status.test (env:status,stage:test,nim,waku,libp2p)
2022-03-10 15:43:30,154 [DEBUG] Service: node-01.ac-cn-hongkong-c.status.test (env:status,stage:test,nim,waku,libp2p)
2022-03-10 15:43:30,154 [INFO] Found 3 services.
2022-03-10 15:43:30,155 [INFO] Calling JSON RPC: localhost:8545
2022-03-10 15:43:36,114 [INFO] SUCCESS

Links

infra-role-waku-peers's People

Contributors

jakubgs avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.