<commit_before># dmlite configuration specific to head node
# Must be included after the configuration common to all nodes

unique template personality/se_dpm/server/config_dmlite;

variable DMLITE_MYSQL_NSPOOLSIZE ?= 32;

@{
desc = configure and enable memcached usage in dmlite
values = boolean
required = no
default = true
}
variable DMLITE_MEMCACHE_ENABLED ?= true;
variable DMLITE_MEMCACHE_POOLSIZE ?= if ( (DPM_VERSION >= '1.9') || (DPM_VERSION == '1.8.9') || match(DPM_VERSION,'^1\.8\.1\d$') ) {
                                       250;
                                     } else {
                                       500;
                                     };
variable MEMCACHED_PORT ?= 11211;
variable MEMCACHED_MAXCONN ?= 8192;
variable MEMCACHED_CACHESIZE ?= 2048;
variable MEMCACHED_OPTIONS ?= '"-l 127.0.0.1 -U ' + to_string(MEMCACHED_PORT) + ' -t 4"';

variable DMLITE_SERVICE_RESTART_CMD ?= {
  services = list();
  if ( XROOT_ENABLED ) {
    services[length(services)] = 'xrootd';
  };
  if ( HTTPS_ENABLED ) {
    services[length(services)] = 'httpd';<commit_msg>'DPM: set memcached disabled by default<commit_after># dmlite configuration specific to head node
# Must be included after the configuration common to all nodes

unique template personality/se_dpm/server/config_dmlite;

variable DMLITE_MYSQL_NSPOOLSIZE ?= 32;

@{
desc = configure and enable memcached usage in dmlite
values = boolean
required = no
default = true
}
variable DMLITE_MEMCACHE_ENABLED ?= false;
variable DMLITE_MEMCACHE_POOLSIZE ?= if ( (DPM_VERSION >= '1.9') || (DPM_VERSION == '1.8.9') || match(DPM_VERSION,'^1\.8\.1\d$') ) {
                                       250;
                                     } else {
                                       500;
                                     };
variable MEMCACHED_PORT ?= 11211;
variable MEMCACHED_MAXCONN ?= 8192;
variable MEMCACHED_CACHESIZE ?= 2048;
variable MEMCACHED_OPTIONS ?= '"-l 127.0.0.1 -U ' + to_string(MEMCACHED_PORT) + ' -t 4"';

variable DMLITE_SERVICE_RESTART_CMD ?= {
  services = list();
  if ( XROOT_ENABLED ) {
    services[length(services)] = 'xrootd';
  };
  if ( HTTPS_ENABLED ) {
    services[length(services)] = 'httpd';
{'fraction_non_alphanumeric': 0.11247165532879819, 'fraction_numerical': 0.0326530612244898, 'mean_word_length': 2.5466237942122185, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7578804', 'n_tokens_mistral': 761, 'n_tokens_neox': 726, 'n_words': 164}