Coder Social home page Coder Social logo

insonmnia's People

Contributors

noxiouz avatar sokel avatar whardier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

insonmnia's Issues

Miners must be identified by some secure unique ID

For now miners are marked by their remote addresses, when they connect to a hub.
It can lead to a collision, as such id is not preserved across reconnections.
At the same time, the id must be secure against forging (i.e. RSA). Probably integration with Whisper based discovery can help there.

error running docker

Hello,

I've followed your readme, but sonm node can not be launched :

docker run --rm -p 10002:10002 -p 10001:10001  sonm/insonmnia sonmhub

docker: Error response from daemon: failed to create endpoint elegant_goodall on network bridge: failed to add the host (vethac43067) <=> sandbox (veth3a8eca5) pair interfaces: operation not supported.

And if I try to run the mining node :

docker run -d --env DOCKER_API_VERSION=1.24 --net=host -v /run:/var/run sonm/insonmnia:alpha3 sonmminer --hubaddress=35.177.238.170:10002

e14ad68223455c3040fd887f9b115e2e221a54c33d939f49ba5ff0dd3c6dd059
docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "process_linux.go:245: running exec setns process for init caused \"exit status 29\"".

I use a Debian 7.5 wheezy
ports 10001 and 10002 are opened. What could I try ?

Thanks

Miner-ERR: caller":"miner/overseer.go:181","msg":"failed to decode container Stats","error":"EOF"

Hi,
after setting up everything i got this error msg

{"level":"info","ts":1497644086.9966042,"caller":"miner/server.go:46","msg":"got ping request from Hub"}
{"level":"info","ts":1497644087.3768384,"caller":"miner/server.go:168","msg":"yamux.Ping OK","rtt":0.3307154}
{"level":"info","ts":1497644092.2185774,"caller":"miner/server.go:168","msg":"yamux.Ping OK","rtt":0.1724198}
{"level":"info","ts":1497644096.9977195,"caller":"miner/server.go:46","msg":"got ping request from Hub"}
{"level":"info","ts":1497644097.380747,"caller":"miner/server.go:168","msg":"yamux.Ping OK","rtt":0.3344896}
{"level":"info","ts":1497644102.2202399,"caller":"miner/server.go:168","msg":"yamux.Ping OK","rtt":0.1739581}
{"level":"info","ts":1497644106.9966178,"caller":"miner/server.go:46","msg":"got ping request from Hub"}
{"level":"info","ts":1497644107.376295,"caller":"miner/server.go:168","msg":"yamux.Ping OK","rtt":0.3301447}
{"level":"info","ts":1497644112.218085,"caller":"miner/server.go:168","msg":"yamux.Ping OK","rtt":0.1718555}
{"level":"warn","ts":1497644116.6997435,"caller":"miner/overseer.go:181","msg":"failed to decode container Stats","error":"EOF"}
{"level":"warn","ts":1497644116.7002566,"caller":"miner/overseer.go:181","msg":"failed to decode container Stats","error":"EOF"}
{"level":"warn","ts":1497644116.7008421,"caller":"miner/overseer.go:181","msg":"failed to decode container Stats","error":"EOF"}
{"level":"warn","ts":1497644116.7013047,"caller":"miner/overseer.go:181","msg":"failed to decode container Stats","error":"EOF"}
{"level":"warn","ts":1497644116.70174,"caller":"miner/overseer.go:181","msg":"failed to decode container Stats","error":"EOF"}
{"level":"warn","ts":1497644116.702189,"caller":"miner/overseer.go:181","msg":"failed to decode container Stats","error":"EOF"}
{"level":"warn","ts":1497644116.702618,"caller":"miner/overseer.go:181","msg":"failed to decode container Stats","error":"EOF"}
{"level":"warn","ts":1497644116.7031195,"caller":"miner/overseer.go:181","msg":"failed to decode container Stats","error":"EOF"}
{"level":"warn","ts":1497644116.7034366,"caller":"miner/overseer.go:181","msg":"failed to decode container Stats","error":"EOF"}
{"level":"warn","ts":1497644116.7038846,"caller":"miner/overseer.go:181","msg":"failed to decode container Stats","error":"EOF"}

and btw your server @ 13.58.62.176:27960 is down ^^

Proxy TCP traffic to/from Miner via Hub

Now Miner has multiplexed TCP connection to a Hub. We can use extra channels to proxy TCP traffic to/from the miner via Hub

Steps for naive solution:

  • Miner should detect NAT (look at #15)
  • If the miner needs proxy, the hub should listen a port, patch returned values to a CLI
  • when accept returns a connection, open new stream in the conn to Miner
  • transfer traffic through it.
  • all open listeners must be bound to a miner's context and task inside Hub to be properly disposed.
  • miner must transport actual info about lauched tasks

Suggested optimizations for naive userspace proxy solution:

  • do not send traffic from miner via hub. Just dance around src packet address (like tunnel IPvS)

Readme

Need to add instructions about 'How to build from source' and 'how to run' - something like that

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.