madshargreave

madshargreave

How to accomplish distributed pooling?

Hey

I’m building a system in which users dynamically will be allocated a number computation ‘slots’. Each slot is basically a single process doing heavy IO-bound work like downloading a file.

Furthermore, I want these processes to be supervised and spread out across nodes, so that the same user can have dedicated processes on multiple machines. I also want the number of computation slots to always (with brief interuptions) to be equal to the number of currently running processes for that particular user.

My initial idea was to use something like swarm to handle the registration and distribution of a ‘coordinator’ process for each user, which would then be responsible for starting and supervising the pooled processes for that same user.

For the pooling I was looking into using something like poolboy, but to my knowledge poolboy and any other pooling libraries I’ve found only allows pooling processes on the same node, and not across nodes in a distributed fashion

Any ideas on how to accomplish the distributed pooling?

First Post!

zinclozenge

zinclozenge

Try looking at something like GitHub - miniclip/poolgirl · GitHub

Essentially, use a distributed process group and go from there.

Last Post!

dimitarvp

dimitarvp

I haven’t used it yet but maybe Firenest can help you?

Where Next?

Popular in Questions Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

Other popular topics Top

Qqwy
Update: How to use the Blogs & Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3271 131117 1222
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New

We're in Beta

About us Mission Statement