Ruby on Rails Monday, August 1, 2011

Hi,

Since creating a rails app to proxy your SSH connections, you can have
your rails application to handle the frontend (passenger + Apache/
nginx) and show stats or whatever you want.
For the data collection, you can have a background task that connect
via SSH, send commands and store the results in DB (which is read by
the rails app).
With this method, you will be able to manage multiple connection at
the same time. If you also need to send command to reconfigure the
router, you can also create a command queue and execute it with
another background task (or the same) (this command queue could be
filled with a rails app, check resque/redis).

My 2 cent help.

best regards

Christophe

On 1 août, 02:13, Rafael Fernández López <eresli...@gmail.com> wrote:
> Hi all,
>
> I have searched for the solution of this problem and found none, for
> this reason I am writing here.
>
> Basically, what I intend to do is pretty easy, and can be achieved with
> several typical solutions easily. However I want to know if there is a
> 'rails way' to do this. Particularly, a 'rails 3 way', since I went with
> Rails 3 for this project.
>
> I have a typical Rails application, in which the special thing is that I
> am accessing through SSH to some selected Cisco routers (in order to
> read some infos from it). Since it is a public applicacion, it could be
> that too many requests come at the same time and the application can
> literally 'crash' the router because of too many work.
>
> I want to know if there is some recommended way of setting a limit on
> how many people can concurrently request something to the controller.
>
> In order to run the application in production mode I will do it with
> Passenger + Apache/nginx.
>
> Best regards, and thanks in advance,
> Rafael Fernández López.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment