Skip to content
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

running slowly on ubuntu 12.04 #8

Closed
heqiqi opened this issue Apr 1, 2015 · 5 comments
Closed

running slowly on ubuntu 12.04 #8

heqiqi opened this issue Apr 1, 2015 · 5 comments

Comments

@heqiqi
Copy link

heqiqi commented Apr 1, 2015

I installed the jobcontrol by following command, but it runs slowly on my box (ubuntu 12.04).

deb http://rex.linux-files.org/ubuntu/ trusty rex
wget -O - http://rex.linux-files.org/DPKG-GPG-KEY-REXIFY-REPO | apt-key add -
apt-get install cpanminus libdatetime-perl gcc make automake m4 bison flex git rex rex-jobcontrol

is there any additional settings in installation?

@krimdomu
Copy link

krimdomu commented Apr 1, 2015

Hi @heqiqi

could you please describe what action is slow? Did you run it inside a vm or docker container?

@heqiqi
Copy link
Author

heqiqi commented Apr 3, 2015

loading home page is fast, but when i clicked one project name, the web loading is too slow.

@krimdomu
Copy link

krimdomu commented Apr 3, 2015

Thanks for the answer,

currently we are including a database into jobcontrol, so i think this will get faster with the next release. But currently i don't have a time when this release will be ready.

Do you have configured many jobs for this project?

@mbroadhead
Copy link

#15 might fix a "slowness" issue. The reason Minion::Backend::File was removed was because it was "unusably slow":

Removed Minion::Backend::File, because DBM::Deep quickly becomes unusably slow, you can use the CPAN module Minion::Backend::SQLite instead.

@heqiqi have you tried using a different minion backend, say, Minion::Backend::SQLite? I don't think there is a way to use a different minion backend out-of-the-box by using a config parameter. Instead, you'll have to modify lib/Rex/JobControl.pm to something like:

$self->plugin( Minion => { SQLite => "sqlite:" . $self->app->config->{minion_db_file} } );

Make sure you make a backup of your current minion_db_file and then erase the existing one so it doesn't look like a corrupted sqlite database.
Make sure you install the Minion::Backend::SQLite perl module as well. It would be nice to add a PR to allow you to configure your own minion backend right from the config. I'll create a feature request for it.

@ehuelsmann
Copy link
Contributor

This issue has been addressed on the master branch yesterday (by allowing the specification of other backends and by supporting more modern Minion versions; modern versions have completely deprecated (and even removed) Minion::Backend::File).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants