Changes between Version 8 and Version 9 of MultiHost
- Timestamp:
- Jul 12, 2007, 4:35:24 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MultiHost
v8 v9 7 7 * slow web site access 8 8 * daemons fall behind 9 * database queries take minutes or hours to complete .9 * database queries take minutes or hours to complete 10 10 11 11 If you experience these problems, try the following (in order). … … 16 16 This eliminates the overhead of creating processes and connecting to the database. 17 17 To use Fast CGI, build an Apache server with mod_fastcgi, 18 compile the Fast CGI version of the scheduler ( fcgi) and file upload handler19 ( fcgi_file_upload_handler), modify your httpd.conf, and restart Apache.18 compile the Fast CGI version of the scheduler (`fcgi`) and file upload handler 19 (`fcgi_file_upload_handler`), modify your `httpd.conf`, and restart Apache. 20 20 21 21 == Upgrade your hardware == 22 Use a host with good CPU capacity (dual Xeon or Opteron), at least 2 GB of RAM, and at least 40 GB of free disk space. Do whatever you can to make it highly reliable (UPS power supply, RAID disk configuration, hot-swappable spares, temp urature-controlled machine room, etc.). For a high-traffic project, use a machine whose RAM capacity is 8 GB or more and that uses64-bit processors.22 Use a host with good CPU capacity (dual Xeon or Opteron), at least 2 GB of RAM, and at least 40 GB of free disk space. Do whatever you can to make it highly reliable (UPS power supply, RAID disk configuration, hot-swappable spares, temperature-controlled machine room, etc.). For a high-traffic project, use a machine with 8 GB of RAM or more, and 64-bit processors. 23 23 24 24 == Run MySQL on a separate host == … … 32 32 33 33 * The [GroupPermissions project admin account] must exist on all hosts, and a user must be able to use 'ssh' to run commands on any other host without typing a password. 34 * The hosts must share a common network file system, and path to the project directory relative to the project admin's home directory (typically ~/projects/PROJECT_NAME) must be the same on all hosts.34 * The hosts must share a common network file system, and path to the project directory relative to the project admin's home directory (typically `~/projects/PROJECT_NAME`) must be the same on all hosts. 35 35 * One host is designated as the project's '''main host''' in config.xml. '''The 'start', 'stop', and 'status' scripts should normally be run on the main host''' (if you run them on a different host X, they'll affect only daemons and tasks on host X). 36 36 * The project admin account on all hosts must be able to access the project's MySQL database. (Exception: data servers and file upload handlers don't need DB access). 37 37 38 38 Host locations are specified as follows: 39 * Scheduling servers are listed in the project's [ServerComponents master page].39 * Scheduling servers are listed in the project's [ServerComponents#ThemasterURL master page]. 40 40 * The hosts on which tasks and daemons are run are specified in the [ProjectConfigFile config.xml] file. 41 41 * Data servers are listed in [WorkGeneration template files]. … … 62 62 You can run scheduling servers on multiple hosts by running an instance of the feeder on each host, and including the URLs in your master file. 63 63 64 An example of a dual-host server (Leiden Classical) is [http://boinc.gorlaeus.net/ServerHardware.php here].64 Example of projects using multiple hosts are [http://boinc.gorlaeus.net/ServerHardware.php Leiden Classical] and [http://boinc.bio.wzw.tum.de/boincsimap/server_hardware.php SIMAP]. 65 65 66 66 == Increasing network performance == … … 96 96 97 97 98 The short story is that you can greatly improve your data transfer rate99 over long internet links by increasing the system TCP tx and rx98 You can greatly improve your data transfer rate 99 over long Internet links by increasing the system TCP tx and rx 100 100 window/buffer values. Note also the comments in 101 101 http://www.onlamp.com/pub/a/onlamp/2005/11/17/tcp_tuning.html?page=1 … … 107 107 before trying to go any larger.) 108 108 109 Other comments are in this example /etc/sysctl.conf(for Linux 2.6.xx):109 Other comments are in this example `/etc/sysctl.conf` (for Linux 2.6.xx): 110 110 111 111 {{{ … … 179 179 # If you see stuff like "swapper: page allocation failure. order:0, 180 180 mode:0x20" 181 # you defin ately need to increase min_free_kbytes for the virtual memory.181 # you definitely need to increase min_free_kbytes for the virtual memory. 182 182 # 183 183 #