-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Controlling multiple devices via one proxy. #34132
Comments
ping @cro do you think this is possible to implement? My knowledge of salt proxy is lacking so wanted to get your opinion. Thanks |
If this works, then it is by accident. Because proxy minions are intended There is a state that was created to help manage multiple proxy processes: https://docs.saltstack.com/en/latest/topics/proxyminion/state.html Note that pillar and state files can be templated with Jinja, so if you On Mon, Jun 20, 2016 at 2:26 PM, Megan Wilhite notifications@github.com
--cro |
Hi @cro As one Proxy consumes upto 40-70MB, running multiple proxy per device has cascading impact. If a single proxy can connect to multiple devices, that won't increase CPU cycle that much. In above link provided by you, I don't see any state that was created to help manage multiple proxy processes. @mirceaulinic I saw sometime back someone posting a query on the same topic and you suggesting to use the device with CPU size as per usage. Can you link that issue here? I am not able to find that. If we can have something like: cat mx.slsproxy:
proxytype: junos
host: 10.209.16.145, 10.210.40.26, 10.9.23.27
username: xxxx
passwd: xxxx where I can provide a list of multiple hosts. vendor code can take care of this, if support by salt. any thoughts. |
Yes, there are some serious memory leaking issues going on with SSH-based proxies (and any kind of minions having My opinion is that having a field configured as a CSV is a very bad idea. This might work in your particular case, but it won't be the same with others. One of the obvious reasons is that you may want different set of params depending on the device (i.e. you login into I believe the format under the |
What is the status of this feature request? |
It is not possible currently to have 1 proxy handling multiple devices. |
FWIW, it is now possible to handle multiple devices with 0 proxies: https://groups.google.com/forum/#!topic/salt-users/j94A41jnOGc HTH! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
@cro @michaelrice I understand connecting different boxes under one proxy is a bad idea. But can proxy themself maintain multiple connections (pool) to same device, this we need to load balance multiple calls (when many calls reach at once time, due to 1st taking longer time all other calls gets timedout). I can pick any available connections to pass on incoming requests. keep_alive, ping should be handled by the proxy owner Or is there any better way to achieve it. |
Thank you for updating this issue. It is no longer marked as stale. |
This is possible, though there is no generic support that would support all existing proxymodules. In the proxymodule you can define a connection pool and manage it however you want there. |
@vnitinv does this get you what you need and we can close the ticket or do you need more information or have more questions? |
Assigning myself for any needed follow up |
I am good for now, will try to handle this in our module itself as suggested by @cro |
Hi,
This is more of a feature request rather than a bug. Currently,I am working with junos proxy and I noticed that only one device will be connected by one salt-proxy call. To run 100 proxied devices we would need to start 100 different proxy processes.
If I define my pillars like this:
/srv/pillar/top.sls
/srv/pillar/device1.sls
...and so on for device2 and device3.
When I execute the following command on my proxy minion:
salt-proxy --proxyid=salt_proxy
All the 3 devices are connected. This way would make more sense than starting up multiple proxy processes.The proxy script can handle that internally.
The text was updated successfully, but these errors were encountered: