Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php // Moodle configuration file
- unset($CFG);
- global $CFG;
- $CFG = new stdClass();
- $CFG->dbtype = 'pgsql';
- $CFG->dblibrary = 'native';
- $CFG->dbhost = 'localhost';
- $CFG->dbname = 'moodleperformancecomparison';
- $CFG->dbuser = 'stronk7';
- $CFG->dbpass = 'tonto_el_que_lo_lea'; // ;-)
- $CFG->prefix = 'mdl_';
- $CFG->dboptions = array (
- 'dbpersist' => 0,
- 'dbsocket' => 0,
- 'fetchbuffersize' => 0, // We don't use big data and cursors lead to an excess of dbreads (AUX). Hence, disabling them.
- );
- $CFG->wwwroot = 'http://10.10.10.13/~stronk7/perf/moodle';
- $CFG->dataroot = '/Users/stronk7/Sites/perf_moodledata';
- $CFG->admin = 'admin';
- // No debug! it changes db reads and db writes values.
- $CFG->debug = false;
- $CFG->debugdisplay = false;
- // No cache_text to have results as stable as possible.
- $CFG->cachetext = 0;
- // Time between threads accesses are randomly generated so we can
- // not have stable results with the core LASTACCESS_UPDATE_SECS value.
- // Moodle will try to define it again, the php error will be hidden with
- // debug mode disabled. https://tracker.moodle.org/browse/MDL-41910
- define('LASTACCESS_UPDATE_SECS', 9999999999);
- // Some more settings towards results stability.
- define('NO_SESSION_UPDATE', true);
- $CFG->sessiontimeout = 172800;
- $CFG->session_update_timemodified_frequency = 9999999999;
- $CFG->messaging = 0; // Disable messaging, it's not used with current JMX plan.
- // Set the generated users password to avoid the default non-loggeable one.
- $CFG->tool_generator_users_password = 'moodlerules';
- // Using file sessions.
- $CFG->dbsessions = false;
- if (!defined('CLI_SCRIPT')) {
- define('MDL_PERF_TEST', true);
- define('MDL_PERF', true);
- define('MDL_PERFDB', true);
- #define('MDL_PERFTOLOG', true);
- define('MDL_PERFTOFOOT', true);
- }
- $CFG->directorypermissions = 0777;
- $CFG->defaulthomepage = 0; // Our current JMX plan expects this.
- require_once(dirname(__FILE__) . '/lib/setup.php');
- // There is no php closing tag in this file,
- // it is intentional because it prevents trailing whitespace problems!
Advertisement
Add Comment
Please, Sign In to add comment