# # Copyrights : CNRS # Author : Oleg Lodygensky # Acknowledgment : XtremWeb-HEP is based on XtremWeb 1.8.0 by inria : http://www.xtremweb.net/ # Web : http://www.xtremweb-hep.org # # This file is part of XtremWeb-HEP. # # XtremWeb-HEP is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # XtremWeb-HEP is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with XtremWeb-HEP. If not, see . # # # Simple Host Configuration File # Next defines the role as worker # This is used by the launcher role=worker # Next is used for group worker only # A group worker is worker connecting with WORKER_USER user rights # which identity is defined in a user group # Such a worker can then not only compute public applications, but also # its own group ones # Next variable may contains the worker group label (and its group only) # this tells that the worker does not accept public jobs, but its own group ones only # (if this is empty or not defined, group worker accept public jobs too) #project= # Next defines URL where launcher can find XtremWeb binary # Default : n/a launcherurl=@LAUNCHERURL@ ####### XtremWeb dispatcher # There put the location of the root XtremWeb server dispatchers=@DISPATCHERS@ # Next line shows how to set several servers (names must be delimited by space or tabulation) #dispatchers=host1 host2 host 3 ####### Data servers # There put the location of the data sever # Default is XtremWeb dispatchers #dataservers=@DATASERVERS@ # Next line shows how to set several servers (names must be delimited by space or tabulation) #dataservers=host1 host2 host 3 # next is TCP port # default value : 4321 ## tcpport=4321 # next is ssl TCP port # default value : 4322 ## tcpsport=4322 # next is UDP port # default value = 4323 ## udpport=4323 # next is the worker HTTP port # the worker may listen (See server.http property) to display its status # default value : 4324 ## httpworkerport=4324 # next is the server HTTP port # default value : 80 ## httpport=80 # next is server HTTPS port # default value : 443 ## httpsport=443 # next is XML RPC port # default value : 4327 ## xmlrpcport=4327 # next is Sun RPC port # default value : 4328 ## sunrpcport=4328 # next is proxy port # default value : -1 (means don't used) ## proxyport=-1 # # This is the proxy resolved name # default : null # Since 7.3.0 #proxyserver= # # Internode communications needs a running SmartSockets hub; this may also denote a hub network
# Property name : "smartsocketshubaddr"
# Property type : string
# Default value : null # @since 8.3.2 # #smartsocketshubaddr= # # This tells if this host accepts to run job that listen for incoming connections # Property name : "incomingconnections" # Property type : boolean # Default value : false # @since 8.0.0 # incomingconnections=true # # This contains the max amount of entries in local cache # Default : 10000 #cachesize # Login and password to connect to the server (required) login=@DEFAULTUSER@ password=@DEFAULTPASSWORD@ # # Following are two ACL variables # They must contains regular expression (regexp) # # Regexp examples # - accept all incoming connection : .* # - accept incoming connection from '168.192.*.*' : 168\.192\..* # - accept incoming connection from '*.in2P3.fr' : .*\.in2p3\.fr # - reject incoming connection from '168.192.*.*' : -168\.192\..* # - reject incoming connection from '*.in2P3.fr' : -.*\.in2p3\.fr # # Communication Access Control List (ACL) # By default you can only access the server from localhost. # This may contains several comma separated regexp # Example # servercommacl=.* # # ACL to server status and administration # XWHEP parts accept incoming connection to display their status and allow # some configuration modification # By default you can only access the server from localhost. # This may contains several comma separated regexp # Example # serverstatacl=168\.192\..* # next defines whether to use NIO # default value : true # this is forced to false, if using HTTPClient ## javanio=true ##### # How many jobs a worker may compute simultaneously # default is the number of detected CPUs, automatically set at runtime # minimum is 1 # workpoolsize=-1 ##### # # This starts or not the http server # This HTTP server is intended to configure the worker on the fly # So that any volunteer PC owner can interact with its worker # Default is true # #startserverhttp=false ##### Name of the class to use as an activator (default is AlwaysActive) # The activator controls which ressources can be used at a given time # currently, only the CPU is handled # # This activator turns the worker always on (the worker always computes) ## activatorclass=xtremweb.worker.AlwaysActive # use this activator if you want XtremWeb to monitor # mouse and keyboard activity to know if it can start a computation # (currently only supperted under Linux) ## activatordelay=20 # Duration in minutes before launching a computation when no # keyboard or mouse activity was detected ## activatorclass=xtremweb.worker.TCPActivator # simple shell to set the activity mask. The activity # mask determine which activity are allowed, see source code # of xtremweb.worker.activator for more details. # For example, TCPActivator can be used with netcat to easily control # the worker from a shell script. # something like # % echo 0 | nc -q 0 localhost 10000 # will stop computation, while # % echo 1 | nc -q localhost 10000 # will start the computaion if some jobs are available # # NOTE -- * Decembre 2005 * # NOTE -- ********************************** # NOTE -- * * # NOTE -- * CPUACTIVATOR * # NOTE -- * * # NOTE -- * has been disabled * # NOTE -- * due to bugs :( * # NOTE -- ********************************** # # OS : linux this is automatically replaced by xtremweb.worker.AlwaysActive # (under Linux, the provided startup scripts nice processes to 10) # OS : win32 this is automatically replaced by xtremweb.worker.WinSaverActivator # OS : Mac OS X this is automatically replaced by xtremweb.worker.DateActivator # #activatorclass=xtremweb.worker.CpuActivator # # cpuLoad aims to determine computation time accordingly to the machine CPU loads. # It is only used with the CpuActivator activator # # Here's how it works : # If more than cpuLoad is requiered by the host for any job but the XW xorker, # the worker stops computing. # This test must be true for up to 1.5s so that the worker stops computing # only if the CPU seems "seriously" required by its owner # # Default is 50 # #cpuLoad=50 # # computing.jobs tells how many jobs a worker should computing and die # # Default is -1 : the worker will never dy # #computingjobs=-1 # # This timeout value has a different meaning for worker and for client # # Worker # ------ # This is the timeout to wait between to work requests in milliseconds # This timeout is multiplicated by 2 between two unsuccessfull requests (work # request returned no job) up to 4 times so that the maximum delay between # to requests is (4 * timeout) # Setting less than 10 is a very special case: the worker then does not # write all files to disk. Hence if it crashes, it will not be able to # recover all informations # # Client # ------ # This is the time to wait for a each job to complete # # ----------------------- # This is in milliseconds # Default is 15000 # #timeout=15000 # # This is the socket timeout # This is in milliseconds # Default is 60000 # Setting it to zero means wait for ever; it is at your own risk, keep in mind that Zero may block the worker for ever # #sotimeout=0 # # This defines how many times we keep trying on socket timeout # Default is 50 # This is forced to default value, if < 1 # #soretries=1 # # This is the max timeout to wait for a job; after this timeout the worker dies. # This is expecially usefull to deploy workers over Grids, so that we don't use # a machine for nothing. # A value <= 0 means wait forever # # This is in seconds # Default is -1 # #noopTimeout=-1 # # This contains class names to get time stamps for # Note : substrings are allowed # (*) "SimpleScheduler" matches "SimpleScheduler" only # but "Scheduler" matches "SimpleScheduler", "MatchingScheduler" etc. # (*) "CommHandler" matches "CommHandler" only # but "Handler" matches "TCPHandler", "UDPHandler", "CommHandler" etc. # (*) "xtremweb" matches all classes # (*) etc. # # Default is "" (turned off) # #mileStones=xtremweb # # commLayer is a String determining the communication layer to use # Possible values : # - xtremweb.communications.TCPClient (this is the default) # - xtremweb.communications.HTTPClient # - xtremweb.communications.UDPFTClient (UDP is a very special case and should only be used with care) # - xtremweb.communications.XMLRPCClient (this does not work yet) # # Octobre 2005 : # UDP **ONLY** support minimalistic transfers (size < 16KB) # This is still a prototype :) # (conterpoint : if you are sure transfers are < 16KB, everything works just fine) # (transfers include app binary, job params etc.) # # Default is xtremweb.communications.TCPClient # #commLayer=xtremweb.communications.HTTPClient # # commHandlers is a String determining the communication handlers # This contains a comma separated list of colon separated tuples # # Example : # xw:xtremweb.communications.TCPClient,http:xtremweb.communications.HTTPClient # # Default is xw:,http:xtremweb.communications.HTTPClient # This automatically always includes default values # Values provided here are then added to handlers # # See commLayer # # Since June 2009, XWHEP also accepts ADICS P2P data platform by Cardiff University # See http://www.p2p-adics.org/ # commHandlers=attic:xtremweb.communications.HTTPClient # # sharedapps is a String determining the local applications the worker wants to share. # This contains a comma separated list of application types. # See xtremweb.common.ApplicationType # # Example : # sharedapps=virtualbox,vmware,vlc # # Default is null # #sharedapps=VirtualBox # # sharedpackages is a String determining local packages # This contains a comma separated list of packages # The name here must be the name of the needed packages for the registered application # # Example : # sharedpackages=root,geant4 # # Default is null # #sharedpackages= # # connectionLess tells to communicate in connectionless mode # (i.e. connect, send message, disconnect) # If set to false, we use connected communication mode # (i.e. connect once forever at warm up, and disconnect only at shut down) # # This has only a sense for TCP communications # # Default is true # #connectionLess=true # # multipleInstances tells whether multiple workers may run on a single host # Allowing may overbook CPU # # Default is false # #multipleInstances=false # # optimizeZip tells to optimze zipping process or not # Zip optimization is quite brutal : we just don't zip if there is only # one tiny file to zip since zipping has a huge CPU cost # Otherwise, if there is more than one file, or if this one but huge file # we do zip # # Default is true # #optimizeZip=true # # optimizeNetwork to try to optimize network traffic # # Default is true # #optimizeNetwork=true # # javaExec tells how to launch native applications; either with xtremweb.exec.Executor # which is the default, or with standard java Runtime.exec() # Be aware that if you use java Runtime, stdin, stdout and stderr are not managed! # Default is false # #javaRuntime=false # Use DateActivator if you want to define gaps usage for XtremWeb # This works 'a la' crontab. # # OS : all # # This uses activator.date to define gaps. # Several comma separated gaps may be provided. # Be aware that defining days with no hours, defines full days (e.g. 24 hours) # Field grammar: # - '*' : every possible values # - : a unic value # - : a couple of values separated by an hyphen ('-') defining a gap from x to y # # Two fields are allowed : # - 1st field defines days of week # - '*' for every day # - '1', 'Sun' or 'Sunday' # - '2', 'Mon' or 'Monday' # - ... # - '7', 'Sat' or 'Saturday' # - a couple (of integers or Strings) defining days from N to M # - 2nd field defines hours # - '*' every hour # - an integer defining a complete hour (0 <= N <= 23) # - a couple of integers defining hours from N:00 to M:59 (0,0 <= N,M <= 23,23) # # Examples: # - * * : every days, full day # - * 1 : every days, from 1:00AM to 1:59AM # - * 11-17 : every days, from 11:00AM to 5:59PM # - 1 * : every sunday # - Thu * : every thursday # - 2-Thu * : from tuesday to thursday # - 4-2 * : from thursday to tuesday # - Thu-Tue 18-3 : from thursday to tuesday, from 6:00PM to 3:59AM # - Thu-Tue 18-3, Sat-Sun * : from thursday to tuesday, from 6:00PM to 3:59AM # **AND** every week ends, full day # #activatorclass=xtremweb.worker.DateActivator # # Next is the DateActivator parameter which tells when to compute as described above # Default is to compute nightly activationdate=* 20-7 # activator that wait for the screensaver to start before allowing # the worker to compute. # OS : win32 ## activatorclass=xtremweb.worker.WinSaverActivator # activator that wait for the screensaver to start before allowing # the worker to compute. # OS : Mac OS X ## activatorclass=xtremweb.worker.MacSaverActivator #### Location of temporary directories # XtremWeb needs to use some disk space to store temporary files. # If you need to use an other directory uncomment this line and specify your own # # Default is /tmp # Note : please use full path; don't use ~ or any variable (e.g. $HOME) # they are not correctly interpreted # # tmpdir=/tmp #### #### # This tells whether worker accepts binary and Java (.JAR) applications # If this is set to false, worker accepts xtremweb.services.* method calls only # as well as jobs for localapps # Default is true # acceptBin=true #### Configuration of the Sandbox tools. # The Sandbox is a security programm that permits a better security # level of XtremWeb. It permits your computer to be protected from the # application ran on your host. # If you wish to use a sand box tool set sandbox.enable to "true" else set # it to "false" or comment it. # If true, you must set sandbox.path and sandbox.start.args below # # Default is false # sandboxenabled=true # give here the full path and name of the sandbox system and the # command line arguments without " # # Under Mac OS >= 10.5 you can use # sandboxpath=/usr/bin/sandbox-exec # sandboxstart.args=-f /usr/share/sandbox/xgridagentd_task_nobody.sb # # sandboxpath=/path_to_sanabox/bin # sandboxstart.args= #### #### worker keystore # SSL requires a file to store the certificate provided by the XtremWeb Server # by default it uses the certificate bundled with the software SSLKeyStore=../keystore/xwhepworker.keys #### #If you change the following remember to regenerate the keys #SSLKEYpassphrase: @KEYPASSPHRASE@ #If you change the following remember to regenerate the keys #SSLKEYpassword: @KEYWORKERPASSWORD@ # # This tells if XWHEP worker is a Pilot Job running on an SG ressource (e.g. EGEE) # This is set by the bridge # This is deprecated; SGID is better : it is automatically set at runtime # Property name : "pilotjob" # Property type : boolean # Default : false # #pilotjob=false # # This is the pilot job SG identifier # This can not be set by hand; this is automatically set by the worker from its environment # Property name : sgid # Property type : string # Default : System.getenv("GLITE_WMS_JOBID") # #sgid= # # This is the expected job URI # This is for SpeQuLoS (EDGI/JRA2) # This is a one shot attribute : the worker will ask this job first. # Whatever is the result of the job request using this attribute, # this is automatically set to null so that the worker tries only once # and then acts as usual. # # Property name : jobid # Property type : URI # #jobid= # # This is the expected group job URI # This is for SpeQuLoS (EDGI/JRA2) # If this attributes is set, the worker will compute jobs submitted within # this group only # This attribute should never be set, except in the very specific context of # quality of service as defined by SpeQuLoS # # Property name : batchid # Property type : URI # #batchid= #### Trace collector # Comment this to disable the Traces Collector. This system records # some activity of your computer and send it to the server. This is # only usefull for research work. #traces=false ##### # # this inserts a system tray icon systemtray=true ##### Logging # # 15 avril 2008 : we don't use log4j any more since we suspect memory leaks # we have developped our own little logger # Available logging levels : # FINEST # DEBUG # CONFIG # INFO # WARN # ERROR loggerlevel=@LOGGERLEVEL@ ##### ##### End of File #####