Commit 94ddcfdab15575ddf9cb815cc88a6800924ac844

Authored by Alexandre Chapellon
1 parent c2b28969b0
Exists in master and in 1 other branch rheltarget

set X resolution and depth and number of FF instances to twice the number of CPU

... ... @@ -44,5 +44,7 @@ selenium_url: "http://selenium-release.storage.googleapis.com/{{ selenium_releas
44 44  
45 45 selenium_hub_portnumber: "{{ selenium_hub_port | default(4444) }}"
46 46  
  47 +xserver_res: 1280x1024x24
  48 +
47 49 mongodb_version: "{{ mongodb_ver | default('3.4') }}"
48 50  
... ...
yml/roles/selenium/templates/sysvinit-node
... ... @@ -15,16 +15,15 @@ XVFB_RUN=/usr/bin/xvfb-run
15 15 MAX_MEMORY="-Xmx1G"
16 16 STACK_SIZE="-Xss1024k"
17 17  
18   -DAEMON_OPTS="$MAX_MEMORY -jar $JAR_FILE -log $LOG_FILE -role node -hub http://${SELENIUM_HUB}:${SELENIUM_PORT}/grid/register -maxSession 500 -browser browserName=firefox,platform=ANY,maxInstances=32 -port 5559 -avoidProxy"
  18 +DAEMON_OPTS="$MAX_MEMORY -jar $JAR_FILE -log $LOG_FILE -role node -hub http://${SELENIUM_HUB}:${SELENIUM_PORT}/grid/register -maxSession 500 -browser browserName=firefox,platform=ANY,maxInstances={{ ansible_processor_cores * 2 }} -port 5559 -avoidProxy"
  19 +XSERVER_ARGS="{{ xserver_res }}"
19 20  
20 21 NAME=selenium
21 22  
22   -# TODO: Put together /etc/init.d/xvfb
23   -
24 23 case "$1" in
25 24 start)
26 25 echo -n "Starting $DESC: "
27   - start-stop-daemon -c $RUN_AS --start --background --pidfile $PID_FILE --make-pidfile --exec $XVFB_RUN -- -a $JAVA_BIN $DAEMON_OPTS
  26 + start-stop-daemon -c $RUN_AS --start --background --pidfile $PID_FILE --make-pidfile --exec $XVFB_RUN -- -s "$XSERVER_ARGS" -a $JAVA_BIN $DAEMON_OPTS
28 27 echo "$NAME."
29 28 ;;
30 29  
... ...