Please enable JS

Selenium Node, slow hub register.

Selenium nodes taking forever to start or register with your hub?
March 18/Brian Young/Software

Selenium needs more entropy

I was trying to setup Selenium on a Digital Ocean Droplet and could not get Selenium nodes to register with my Selenium Hub. If it did eventually register, it took 30 plus minutes!

Part 2: Automated Drupal testing with Behat, Selenium, and Headless Firefox

Very slow node startup. Why?

By chance, I found a comment on an unrelated Stackoverflow Selenium question. It mentioned entropy in regards to Selenium starting up so slowly.

After some searching, I found that entropy can be problematic on VPS hosting solutions like Digitalocean's droplets. Read their article for more information.

Haveged to the rescue

Installing Haveged fixed slow Selenium Node startups and hub registering.

  1. apt-get install haveged

You may want to verify that it is running after the install completes.

  1. sudo service haveged status


RELATED POSTS


Comments/ 0


LEAVE A COMMENT

(If you're a human, don't change the following field)
Your first name.
(If you're a human, don't change the following field)
Your first name.
(If you're a human, don't change the following field)
Your first name.
But why?

My random thoughts and documentation on the various hardware and software projects that occupy my day-to-day. My only hope is that other people can benefit from my notes.

Recent posts
Categories