Ruby on Rails Thursday, June 22, 2017

On Thu, Jun 22, 2017 at 12:08 PM, David McDonald <daveomcd@gmail.com> wrote:

> when I generate
> a PDF files, usually the CPU will get to ~80+% during the generation

Ouch! The big question is: are you actually doing anything else with
that server? If Rails has the machine all to itself, and you don't
have enough traffic that someone else is probably waiting for a reply,
you may be OK as-is.

Otherwise, a number of other approaches come to mind. As you
mentioned, you could put it on another machine. You could also see if
you could "nice down" that process, i.e., use the "nice" utility (or
some such programming) to set the priority of the PDF-making process
so that others can have a better share.

-Dave

--
Dave Aronson, consulting software developer of Codosaur.us,
PullRequestRoulette.com, Blog.Codosaur.us, and Dare2XL.com.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAHxKQijmzmbC9W1TidrHgu2YzUGzTnZ%3Dnu-46skWH%3D2rs46RiA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment