Coder Social home page Coder Social logo

pads's People

Contributors

hodiapa avatar yogeshvu avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pads's Issues

decorator assets not found

assets directory not found:

 [gme:server:standalone] Requested DecoratorSVG not found /assets/DecoratorSVG/Settings-toolkit.svg
2017-12-02T17:09:54.883Z - warn: [gme:server:standalone] Requested DecoratorSVG not found /assets/DecoratorSVG/png/follower.svg
2017-12-02T17:09:54.904Z - warn: [gme:server:standalone] Requested DecoratorSVG not found /assets/DecoratorSVG/png/leader.svg
2017-12-02T17:09:54.922Z - warn: [gme:server:standalone] Requested DecoratorSVG not found /assets/DecoratorSVG/png/learner.svg

Link Directory is configured at https://github.com/doc-vu/pads/blob/master/config/config.default.js#L25

automatic running applications on hosts

For now, the pads will simply generate a Mininet topology and a list of commands. The user may type those commands in the Mininet Client in order to run their applications. This is fine when the experiment is in relatively small scale. But when there are a large number of applications that need to be deployed on the Mininet, it will be a huge issue that the user has to type a command every time they want to run an application. For example, in a publisher-subscriber-broker system, if we have one publisher running on host1, and one broker running host2, and 20 subscribers running on host3. The user may expect the pads also generate a script that automatically runs those applications. I wrote a code snippet for this purpose:

def runApps(net):
    "Run cmds in command.txt"
    print "Running applications"
    with open("command.txt") as f:
        for line in f:
            splitedLine = line.split(' ', 1)
            print splitedLine[0]
            host = net.get(splitedLine[0])
            print splitedLine[1]
            host.cmd(splitedLine[1])

and our generated commands.txt should look like this:

h0 ./runBroker.sh &> ./result/h0broker0.log
h1 ./runPub.sh 10.0.0.1 &> ./result/h1pub0.log
h2 ./runSub.sh 10.0.0.1 &> ./result/h2sub0.log
h2 ./runSub.sh 10.0.0.1 &> ./result/h2sub1.log
h2 ./runSub.sh 10.0.0.1 &> ./result/h2sub2.log
...
...

Notice that every command has an redirect command as a part of it. It's reasonable that every application running on the Mininet need a private place to save their output. We could use "hostName" + "instanceID" to make the logfile for every application unique. And user should not bother to pass a unique logfile name as one of the arguments for each of applications.

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.