Git Product home page Git Product logo

alephium-ops-legacy's Introduction

Install

See buildInputs value in the file default.nix to get the list of requiered tools, also review the environment variables defined in that file.

Usage

Running a local network

After building alephium-blockflow you can start it as the following example:

ALEPHIUM_ENV=prod groups=4 brokerNum=2 nodes=4 ./make run

Workflow

One should first create an AMI (Amazon Machine Image) for a given package version, this image will then be used to create one or many VPC clusters.

  • image-create
  • cluster-create
  • cluster-delete
  • image-delete

Note: every resources created by image-create are tagged using $PACKAGE_NAME-$PACKAGE_VERSION, similarly all resources created by cluster-create are tagged using $CLUSTER_ID.

image-create

cluster-create

  • Once the image is ready, one can start a new cluster with ./cluster-create.sh $CLUSTER_ID

The EC2 console ("Instances") show public IP addresses of nodes, which can be used to communicate with them.

One can SSH to them, and print the log output.

ssh -i default.pem ec2-user@$IP_ADDRESS tail -f /var/log/cloud-init-output.log

One can also use pssh to access multiple instances at once.

./cluster-pssh.sh foo "tail /root/.alephium/logs/alephium.log"

cluster-rpc-call

One can do RPC call accross the whole cluster, for example to start mining.

./cluster-rpc-call foo mining/start

JMX

You can attach a JVisualVM session to any node, first open a ssh tunnel with the following port bindings.

ssh -L 9010:localhost:9010 -L 9011:localhost:9011 -i default.pem ec2-user@

You can now open a remote JMX connection is JVisualVM using localhost:9010.

TODO

  • Upload the application to a S3 bucket, and then fetch from there.
    • Add cluster-update

cluster-delete

You can delete the cluster once you are done with it using ./cluster-delete $CLUSTER_ID.

image-delete

In order to completely remove an image from the ELS storage, one can run ./image-delete.

This can be used to recreate the image of a same package version with an update package file.

alephium-ops-legacy's People

Contributors

aloiscochard avatar

Watchers

 avatar  avatar  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.