GithubHelp home page GithubHelp logo

ttyd_aws-ec2's Introduction

TTYD utilities for distributed service

ttyd_node

creates random user h5cpp_####, runs ttyd at port -p #### and removes user account when finished

usage: ttyd_node [-h] [-p PORT] [-s SERVER] [-t TIMEOUT] [--port-min PORT_MIN]
                 [--port-max PORT_MAX]

this client connects to server, the client must have h5cpp group defined

optional arguments:
  -h, --help            show this help message and exit
  -p PORT, --port PORT  udp port to connect
  -s SERVER, --server SERVER
                        server to connect
  -t TIMEOUT, --timeout TIMEOUT
                        socket timeout
  --port-min PORT_MIN   min random port ttyd listens at
  --port-max PORT_MAX   max random port ttyd listens at

ttyd_master

usage: ttyd_master [-h] [-t TIMEOUT] [-p PORT] [-l LINK]

    TTYD  CONTROLLER
    layered on UDP with REQ-REP-ACK protocol tracks running number of instances, and be polled by python call
    ttyd_link. Consumed link must be connected to with html redirect so the resource is closed when connection 
    breaks

optional arguments:
  -h, --help            show this help message and exit
  -t TIMEOUT, --timeout TIMEOUT
                        socket timeout
  -p PORT, --port PORT  udp port listen at
  -l LINK, --link LINK  link to redirect if all ttyd services are busy

ttyd_link | redirect.py

pulls html link from master queue, and redirects html request. If the aws-ec2 nodes are saturated the returned link is the webpage specified with ttyd_master --link parking_page.html

usage: ttyd_link [-h] [-t TIMEOUT] [-r RETRY] [-p PORT] [-s SERVER]

retrieves an href link from ttyd_queue

optional arguments:
  -h, --help            show this help message and exit
  -t TIMEOUT, --timeout TIMEOUT
                        packet timeout
  -r RETRY, --retry RETRY
                        max retry after transmission failure
  -p PORT, --port PORT  udp port listen at
  -s SERVER, --server SERVER
                        ttyd_master ip address

ttyd_aws-ec2's People

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.