[ 
https://issues.apache.org/jira/browse/SOLR-5776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14080010#comment-14080010
 ] 

Steve Rowe commented on SOLR-5776:
----------------------------------

bq. Steve Rowe: I have no idea what the cron-job is doing!  Can somebody 
explain and why this helps?

The cron job is feeding the entropy pool by writing to {{/dev/random}}, which 
should unblock reads from {{/dev/random}}, assuming there is some randomness in 
what gets fed in, and/or that side-effect I/O timings feed the pool.

I don't much about this stuff, but here's some things I've read recently about 
it:

* https://we.riseup.net/debian/entropy (Linux random entropy, some Debian 
specifics, with a discussion of other OSs)
* 
http://security.stackexchange.com/questions/42952/how-can-i-measure-and-increase-entropy-on-mac-os-x
 (Q/A about OS X entropy)
* http://en.wikipedia.org/wiki/Entropy_(computing) (Brief coverage of various 
OSs' handling of entropy) 
* http://en.wikipedia.org/?title=/dev/random (random number generation on 
various OSs)
* https://wiki.freebsd.org/201308DevSummit/Security/DevRandom (FreeBSD 
/dev/random design discussion)

bq. Is there anything to change in Windows or the Linux Jenkins?

I don't know; as Hoss says above, we want to run some experiments to see if 
re-enabling SSL in tests that have had trouble in the past will cause trouble 
again.  So we should know in short order if these need changes.

{quote}
You can log into MacOSX jenkins (if its running): ssh 
[email protected] (has IPv4 and IPv6 address), for the password 
send me a note. You can try out whatever you want. Please note, that the 
virtual machine gets reset to "clean and empty state" on every update, so once 
you found a good cron-job, I can persist it on the VM snapshot.
{quote}

Done - I only did two things: {{sudo touch /etc/crontab}} to enable cron 
(apparently on OSX cron doesn't do anything unless this file exists, and it 
doesn't exist until you create it); and added a crontab for the jenkins user 
via {{crontab -e}} - here's the result (via {{crontab -l}}):

{noformat}
# Stolen from FreeBSD's /etc/rc.d/initrandom to unblock /dev/random
* * * * * ( ps -faxww ; /usr/sbin/sysctl -a ; date ; df -ib ; ps -faxww ; cat 
/bin/ls ) | dd of=/dev/random bs=8k 2>/dev/null
{noformat}

I re-enabled SSL on {{TestCloudSchemaless}}, and I'll monitor Jenkins to see if 
it starts failing. 

> Look at speeding up using SSL with tests.
> -----------------------------------------
>
>                 Key: SOLR-5776
>                 URL: https://issues.apache.org/jira/browse/SOLR-5776
>             Project: Solr
>          Issue Type: Test
>            Reporter: Mark Miller
>            Assignee: Mark Miller
>             Fix For: 4.9, 5.0
>
>         Attachments: SOLR-5776.patch, SOLR-5776.patch
>
>
> We have to disable SSL on a bunch of tests now because it appears to sometime 
> be ridiculously slow - especially in slow envs (I never see timeouts on my 
> machine).
> I was talking to Robert about this, and he mentioned that there might be some 
> settings we could change to speed it up.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to