![]() |
XRootD
|
Contains parameters configurable from the xrootd config file. More...
#include <XrdPfc.hh>
Public Member Functions | |
Configuration () | |
bool | are_file_usage_limits_set () const |
void | calculate_fractional_usages (long long du, long long fu, double &frac_du, double &frac_fu) |
bool | does_cschk_have_missing_bits (CkSumCheck_e cks_on_file) const |
CkSumCheck_e | get_cs_Chk () const |
bool | is_age_based_purge_in_effect () const |
bool | is_cschk_any () const |
bool | is_cschk_both () const |
bool | is_cschk_cache () const |
bool | is_cschk_net () const |
bool | is_dir_stat_reporting_on () const |
bool | is_purge_plugin_set_up () const |
bool | is_uvkeep_purge_in_effect () const |
bool | should_uvkeep_purge (time_t delta) const |
Public Attributes | |
int | m_accHistorySize |
max number of entries in access history part of cinfo file | |
bool | m_allow_xrdpfc_command |
flag for enabling access to /xrdpfc-command/ functionality. | |
long long | m_bufferSize |
prefetch buffer size, default 1MB | |
int | m_cs_Chk |
Checksum check. | |
bool | m_cs_ChkTLS |
Allow TLS. | |
time_t | m_cs_UVKeep |
unverified checksum cache keep | |
std::string | m_data_space |
oss space for data files | |
std::set< std::string > | m_dirStatsDirGlobs |
directory globs for which stat reporting was requested | |
std::set< std::string > | m_dirStatsDirs |
directories for which stat reporting was requested | |
int | m_dirStatsMaxDepth |
maximum depth for statistics write out | |
int | m_dirStatsStoreDepth |
depth to which statistics should be collected | |
long long | m_diskTotalSpace |
total disk space on configured partition or oss space | |
long long | m_diskUsageHWM |
cache purge - disk usage high water mark | |
long long | m_diskUsageLWM |
cache purge - disk usage low water mark | |
long long | m_fileUsageBaseline |
cache purge - files usage baseline | |
long long | m_fileUsageMax |
cache purge - files usage maximum | |
long long | m_fileUsageNominal |
cache purge - files usage nominal | |
long long | m_flushCnt |
nuber of unsynced blcoks on disk before flush is called | |
long long | m_hdfsbsize |
used with m_hdfsmode, default 128MB | |
bool | m_hdfsmode |
flag for enabling block-level operation | |
std::string | m_meta_space |
oss space for metadata files (cinfo) | |
double | m_onlyIfCachedMinFrac |
minimum fraction of downloaded file, used by only-if-cached CGI option | |
long long | m_onlyIfCachedMinSize |
minumum size of downloaded file, used by only-if-cached CGI option | |
int | m_prefetch_max_blocks |
maximum number of blocks to prefetch per file | |
int | m_purgeAgeBasedPeriod |
peform cold file / uvkeep purge every this many purge cycles | |
int | m_purgeColdFilesAge |
purge files older than this age | |
int | m_purgeInterval |
sleep interval between cache purges | |
long long | m_RamAbsAvailable |
available from configuration | |
int | m_RamKeepStdBlocks |
number of standard-sized blocks kept after release | |
std::string | m_username |
username passed to oss plugin | |
int | m_wqueue_blocks |
maximum number of blocks written per write-queue loop | |
int | m_wqueue_threads |
number of threads writing blocks to disk | |
Contains parameters configurable from the xrootd config file.
Configuration::Configuration | ( | ) |
Definition at line 30 of file XrdPfcConfiguration.cc.
References XrdPfc::CSChk_Net, m_accHistorySize, m_allow_xrdpfc_command, m_bufferSize, m_cs_Chk, m_cs_ChkTLS, m_cs_UVKeep, m_data_space, m_dirStatsMaxDepth, m_dirStatsStoreDepth, m_diskTotalSpace, m_diskUsageHWM, m_diskUsageLWM, m_fileUsageBaseline, m_fileUsageMax, m_fileUsageNominal, m_flushCnt, m_hdfsbsize, m_hdfsmode, m_meta_space, m_onlyIfCachedMinFrac, m_onlyIfCachedMinSize, m_prefetch_max_blocks, m_purgeAgeBasedPeriod, m_purgeColdFilesAge, m_purgeInterval, m_RamAbsAvailable, m_RamKeepStdBlocks, m_wqueue_blocks, and m_wqueue_threads.
|
inline |
void Configuration::calculate_fractional_usages | ( | long long | du, |
long long | fu, | ||
double & | frac_du, | ||
double & | frac_fu ) |
Definition at line 135 of file XrdPfc.cc.
References m_diskUsageHWM, m_diskUsageLWM, m_fileUsageBaseline, and m_fileUsageMax.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 62 of file XrdPfc.hh.
References m_dirStatsDirGlobs, m_dirStatsDirs, and m_dirStatsMaxDepth.
|
inline |
|
inline |
|
inline |
int XrdPfc::Configuration::m_accHistorySize |
max number of entries in access history part of cinfo file
Definition at line 94 of file XrdPfc.hh.
Referenced by Configuration().
bool XrdPfc::Configuration::m_allow_xrdpfc_command |
flag for enabling access to /xrdpfc-command/ functionality.
Definition at line 79 of file XrdPfc.hh.
Referenced by Configuration().
long long XrdPfc::Configuration::m_bufferSize |
prefetch buffer size, default 1MB
Definition at line 101 of file XrdPfc.hh.
Referenced by Configuration(), and XrdPfc::Cache::ExecuteCommandUrl().
int XrdPfc::Configuration::m_cs_Chk |
Checksum check.
Definition at line 112 of file XrdPfc.hh.
Referenced by Configuration(), does_cschk_have_missing_bits(), get_cs_Chk(), is_cschk_any(), is_cschk_both(), is_cschk_cache(), and is_cschk_net().
bool XrdPfc::Configuration::m_cs_ChkTLS |
time_t XrdPfc::Configuration::m_cs_UVKeep |
unverified checksum cache keep
Definition at line 111 of file XrdPfc.hh.
Referenced by Configuration(), is_uvkeep_purge_in_effect(), and should_uvkeep_purge().
std::string XrdPfc::Configuration::m_data_space |
oss space for data files
Definition at line 82 of file XrdPfc.hh.
Referenced by Configuration(), and XrdPfc::Cache::ExecuteCommandUrl().
std::set<std::string> XrdPfc::Configuration::m_dirStatsDirGlobs |
directory globs for which stat reporting was requested
Definition at line 97 of file XrdPfc.hh.
Referenced by is_dir_stat_reporting_on().
std::set<std::string> XrdPfc::Configuration::m_dirStatsDirs |
directories for which stat reporting was requested
Definition at line 96 of file XrdPfc.hh.
Referenced by is_dir_stat_reporting_on().
int XrdPfc::Configuration::m_dirStatsMaxDepth |
maximum depth for statistics write out
Definition at line 98 of file XrdPfc.hh.
Referenced by Configuration(), and is_dir_stat_reporting_on().
int XrdPfc::Configuration::m_dirStatsStoreDepth |
depth to which statistics should be collected
Definition at line 99 of file XrdPfc.hh.
Referenced by Configuration().
long long XrdPfc::Configuration::m_diskTotalSpace |
total disk space on configured partition or oss space
Definition at line 85 of file XrdPfc.hh.
Referenced by Configuration().
long long XrdPfc::Configuration::m_diskUsageHWM |
cache purge - disk usage high water mark
Definition at line 87 of file XrdPfc.hh.
Referenced by Configuration(), and calculate_fractional_usages().
long long XrdPfc::Configuration::m_diskUsageLWM |
cache purge - disk usage low water mark
Definition at line 86 of file XrdPfc.hh.
Referenced by Configuration(), and calculate_fractional_usages().
long long XrdPfc::Configuration::m_fileUsageBaseline |
cache purge - files usage baseline
Definition at line 88 of file XrdPfc.hh.
Referenced by Configuration(), and calculate_fractional_usages().
long long XrdPfc::Configuration::m_fileUsageMax |
cache purge - files usage maximum
Definition at line 90 of file XrdPfc.hh.
Referenced by Configuration(), are_file_usage_limits_set(), and calculate_fractional_usages().
long long XrdPfc::Configuration::m_fileUsageNominal |
cache purge - files usage nominal
Definition at line 89 of file XrdPfc.hh.
Referenced by Configuration().
long long XrdPfc::Configuration::m_flushCnt |
nuber of unsynced blcoks on disk before flush is called
Definition at line 109 of file XrdPfc.hh.
Referenced by Configuration().
long long XrdPfc::Configuration::m_hdfsbsize |
used with m_hdfsmode, default 128MB
Definition at line 108 of file XrdPfc.hh.
Referenced by Configuration(), and XrdPfc::IOFileBlock::IOFileBlock().
bool XrdPfc::Configuration::m_hdfsmode |
flag for enabling block-level operation
Definition at line 78 of file XrdPfc.hh.
Referenced by Configuration().
std::string XrdPfc::Configuration::m_meta_space |
oss space for metadata files (cinfo)
Definition at line 83 of file XrdPfc.hh.
Referenced by Configuration(), and XrdPfc::Cache::ExecuteCommandUrl().
double XrdPfc::Configuration::m_onlyIfCachedMinFrac |
minimum fraction of downloaded file, used by only-if-cached CGI option
Definition at line 116 of file XrdPfc.hh.
Referenced by Configuration().
long long XrdPfc::Configuration::m_onlyIfCachedMinSize |
minumum size of downloaded file, used by only-if-cached CGI option
Definition at line 115 of file XrdPfc.hh.
Referenced by Configuration().
int XrdPfc::Configuration::m_prefetch_max_blocks |
maximum number of blocks to prefetch per file
Definition at line 106 of file XrdPfc.hh.
Referenced by Configuration(), and XrdOucGetCache().
int XrdPfc::Configuration::m_purgeAgeBasedPeriod |
peform cold file / uvkeep purge every this many purge cycles
Definition at line 93 of file XrdPfc.hh.
Referenced by Configuration().
int XrdPfc::Configuration::m_purgeColdFilesAge |
purge files older than this age
Definition at line 92 of file XrdPfc.hh.
Referenced by Configuration(), and is_age_based_purge_in_effect().
int XrdPfc::Configuration::m_purgeInterval |
sleep interval between cache purges
Definition at line 91 of file XrdPfc.hh.
Referenced by Configuration().
long long XrdPfc::Configuration::m_RamAbsAvailable |
available from configuration
Definition at line 102 of file XrdPfc.hh.
Referenced by Configuration().
int XrdPfc::Configuration::m_RamKeepStdBlocks |
number of standard-sized blocks kept after release
Definition at line 103 of file XrdPfc.hh.
Referenced by Configuration().
std::string XrdPfc::Configuration::m_username |
username passed to oss plugin
Definition at line 81 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::ExecuteCommandUrl().
int XrdPfc::Configuration::m_wqueue_blocks |
maximum number of blocks written per write-queue loop
Definition at line 104 of file XrdPfc.hh.
Referenced by Configuration().
int XrdPfc::Configuration::m_wqueue_threads |
number of threads writing blocks to disk
Definition at line 105 of file XrdPfc.hh.
Referenced by Configuration().