jepst / CloudHaskell

A distributed computing framework for Haskell
http://hackage.haskell.org/package/remote
BSD 3-Clause "New" or "Revised" License
347 stars 22 forks source link

Config File #12

Closed drdo closed 12 years ago

drdo commented 12 years ago

Would it be possible to expose a config type instead of requiring a file?

Also, allowing some sort of option to use a different transport for connections (use case i have in mind right now is TLS).

jepst commented 12 years ago

Yes, there is a user-visible Config type, in the Remote.Process module, which you can give to initNode instead of calling remoteInit. You'll also need to start system service processes manually. I admit that this all could be streamlined. I suggest starting by copying the Remote.Init module.

Right now CH only supports plain TCP, but there is a new implementation in the works that supports pluggable back-ends. https://github.com/haskell-distributed/distributed-process

jepst commented 12 years ago

Actually, cancel that. Just use the remoteInitFromConfig function from the latest push.