![]() |
XRootD
|
Contains parameters configurable from the xrootd config file. More...
#include <XrdPfc.hh>
Public Member Functions | |
Configuration () | |
bool | are_file_usage_limits_set () const |
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 More... | |
bool | m_allow_xrdpfc_command |
flag for enabling access to /xrdpfc-command/ functionality. More... | |
long long | m_bufferSize |
prefetch buffer size, default 1MB More... | |
int | m_cs_Chk |
Checksum check. More... | |
bool | m_cs_ChkTLS |
Allow TLS. More... | |
time_t | m_cs_UVKeep |
unverified checksum cache keep More... | |
std::string | m_data_space |
oss space for data files More... | |
std::set< std::string > | m_dirStatsDirGlobs |
directory globs for which stat reporting was requested More... | |
std::set< std::string > | m_dirStatsDirs |
directories for which stat reporting was requested More... | |
int | m_dirStatsInterval |
time between resource monitor statistics dump in seconds More... | |
int | m_dirStatsMaxDepth |
maximum depth for statistics write out More... | |
int | m_dirStatsStoreDepth |
depth to which statistics should be collected More... | |
long long | m_diskTotalSpace |
total disk space on configured partition or oss space More... | |
long long | m_diskUsageHWM |
cache purge - disk usage high water mark More... | |
long long | m_diskUsageLWM |
cache purge - disk usage low water mark More... | |
long long | m_fileUsageBaseline |
cache purge - files usage baseline More... | |
long long | m_fileUsageMax |
cache purge - files usage maximum More... | |
long long | m_fileUsageNominal |
cache purge - files usage nominal More... | |
long long | m_flushCnt |
nuber of unsynced blcoks on disk before flush is called More... | |
long long | m_hdfsbsize |
used with m_hdfsmode, default 128MB More... | |
bool | m_hdfsmode |
flag for enabling block-level operation More... | |
std::string | m_meta_space |
oss space for metadata files (cinfo) More... | |
double | m_onlyIfCachedMinFrac |
minimum fraction of downloaded file, used by only-if-cached CGI option More... | |
long long | m_onlyIfCachedMinSize |
minumum size of downloaded file, used by only-if-cached CGI option More... | |
int | m_prefetch_max_blocks |
maximum number of blocks to prefetch per file More... | |
int | m_purgeAgeBasedPeriod |
peform cold file / uvkeep purge every this many purge cycles More... | |
int | m_purgeColdFilesAge |
purge files older than this age More... | |
int | m_purgeInterval |
sleep interval between cache purges More... | |
long long | m_RamAbsAvailable |
available from configuration More... | |
int | m_RamKeepStdBlocks |
number of standard-sized blocks kept after release More... | |
std::string | m_username |
username passed to oss plugin More... | |
int | m_wqueue_blocks |
maximum number of blocks written per write-queue loop More... | |
int | m_wqueue_threads |
number of threads writing blocks to disk More... | |
Contains parameters configurable from the xrootd config file.
Configuration::Configuration | ( | ) |
Definition at line 33 of file XrdPfcConfiguration.cc.
|
inline |
Definition at line 67 of file XrdPfc.hh.
References m_fileUsageMax.
Referenced by XrdPfc::ResourceMonitor::perform_purge_check().
|
inline |
|
inline |
|
inline |
Definition at line 68 of file XrdPfc.hh.
References m_purgeColdFilesAge.
Referenced by XrdPfc::ResourceMonitor::perform_purge_check().
|
inline |
|
inline |
|
inline |
Definition at line 75 of file XrdPfc.hh.
References XrdPfc::CSChk_Cache, and m_cs_Chk.
Referenced by XrdPfc::Cache::Config().
|
inline |
Definition at line 76 of file XrdPfc.hh.
References XrdPfc::CSChk_Net, and m_cs_Chk.
Referenced by XrdPfc::Cache::Config().
|
inline |
Definition at line 70 of file XrdPfc.hh.
References m_dirStatsDirGlobs, m_dirStatsDirs, and m_dirStatsMaxDepth.
Referenced by XrdPfc::Cache::Config(), and XrdPfc::ResourceMonitor::heart_beat().
|
inline |
|
inline |
|
inline |
int XrdPfc::Configuration::m_accHistorySize |
max number of entries in access history part of cinfo file
Definition at line 100 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config().
bool XrdPfc::Configuration::m_allow_xrdpfc_command |
flag for enabling access to /xrdpfc-command/ functionality.
Definition at line 85 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config(), and XrdPfc::Cache::Prepare().
long long XrdPfc::Configuration::m_bufferSize |
prefetch buffer size, default 1MB
Definition at line 108 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config(), XrdPfc::Cache::ExecuteCommandUrl(), XrdPfc::Cache::ReleaseRAM(), and XrdPfc::Cache::RequestRAM().
int XrdPfc::Configuration::m_cs_Chk |
Checksum check.
Definition at line 119 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config(), 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 118 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config(), is_uvkeep_purge_in_effect(), and should_uvkeep_purge().
std::string XrdPfc::Configuration::m_data_space |
oss space for data files
Definition at line 88 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config(), XrdPfc::Cache::ExecuteCommandUrl(), and XrdPfc::DataFsSnapshot::write_json_file().
std::set<std::string> XrdPfc::Configuration::m_dirStatsDirGlobs |
directory globs for which stat reporting was requested
Definition at line 103 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config(), and is_dir_stat_reporting_on().
std::set<std::string> XrdPfc::Configuration::m_dirStatsDirs |
directories for which stat reporting was requested
Definition at line 102 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config(), and is_dir_stat_reporting_on().
int XrdPfc::Configuration::m_dirStatsInterval |
time between resource monitor statistics dump in seconds
Definition at line 104 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config(), and XrdPfc::ResourceMonitor::heart_beat().
int XrdPfc::Configuration::m_dirStatsMaxDepth |
maximum depth for statistics write out
Definition at line 105 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config(), and is_dir_stat_reporting_on().
int XrdPfc::Configuration::m_dirStatsStoreDepth |
depth to which statistics should be collected
Definition at line 106 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config(), and XrdPfc::ResourceMonitor::heart_beat().
long long XrdPfc::Configuration::m_diskTotalSpace |
total disk space on configured partition or oss space
Definition at line 91 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config(), and Proto_ResourceMonitorHeartBeat().
long long XrdPfc::Configuration::m_diskUsageHWM |
cache purge - disk usage high water mark
Definition at line 93 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config(), and XrdPfc::ResourceMonitor::perform_purge_check().
long long XrdPfc::Configuration::m_diskUsageLWM |
cache purge - disk usage low water mark
Definition at line 92 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config(), and XrdPfc::ResourceMonitor::perform_purge_check().
long long XrdPfc::Configuration::m_fileUsageBaseline |
cache purge - files usage baseline
Definition at line 94 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config().
long long XrdPfc::Configuration::m_fileUsageMax |
cache purge - files usage maximum
Definition at line 96 of file XrdPfc.hh.
Referenced by are_file_usage_limits_set(), and XrdPfc::Cache::Config().
long long XrdPfc::Configuration::m_fileUsageNominal |
cache purge - files usage nominal
Definition at line 95 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config().
long long XrdPfc::Configuration::m_flushCnt |
nuber of unsynced blcoks on disk before flush is called
Definition at line 116 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config(), and XrdPfc::File::WriteBlockToDisk().
long long XrdPfc::Configuration::m_hdfsbsize |
used with m_hdfsmode, default 128MB
Definition at line 115 of file XrdPfc.hh.
Referenced by XrdPfc::IOFileBlock::IOFileBlock(), and XrdPfc::Cache::Config().
bool XrdPfc::Configuration::m_hdfsmode |
flag for enabling block-level operation
Definition at line 84 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config().
std::string XrdPfc::Configuration::m_meta_space |
oss space for metadata files (cinfo)
Definition at line 89 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config(), and XrdPfc::Cache::ExecuteCommandUrl().
double XrdPfc::Configuration::m_onlyIfCachedMinFrac |
minimum fraction of downloaded file, used by only-if-cached CGI option
Definition at line 123 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config(), and XrdPfc::Cache::DecideIfConsideredCached().
long long XrdPfc::Configuration::m_onlyIfCachedMinSize |
minumum size of downloaded file, used by only-if-cached CGI option
Definition at line 122 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config(), and XrdPfc::Cache::DecideIfConsideredCached().
int XrdPfc::Configuration::m_prefetch_max_blocks |
maximum number of blocks to prefetch per file
Definition at line 113 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config(), and XrdOucGetCache().
int XrdPfc::Configuration::m_purgeAgeBasedPeriod |
peform cold file / uvkeep purge every this many purge cycles
Definition at line 99 of file XrdPfc.hh.
Referenced by XrdPfc::ResourceMonitor::heart_beat().
int XrdPfc::Configuration::m_purgeColdFilesAge |
purge files older than this age
Definition at line 98 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config(), and is_age_based_purge_in_effect().
int XrdPfc::Configuration::m_purgeInterval |
sleep interval between cache purges
Definition at line 97 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config(), and XrdPfc::ResourceMonitor::heart_beat().
long long XrdPfc::Configuration::m_RamAbsAvailable |
available from configuration
Definition at line 109 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config(), XrdPfc::Cache::Prefetch(), Proto_ResourceMonitorHeartBeat(), and XrdPfc::Cache::RequestRAM().
int XrdPfc::Configuration::m_RamKeepStdBlocks |
number of standard-sized blocks kept after release
Definition at line 110 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config(), and XrdPfc::Cache::ReleaseRAM().
std::string XrdPfc::Configuration::m_username |
username passed to oss plugin
Definition at line 87 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config(), XrdPfc::Cache::DetermineFullFileSize(), XrdPfc::Cache::ExecuteCommandUrl(), XrdPfc::Cache::LocalFilePath(), and XrdPfc::DataFsSnapshot::write_json_file().
int XrdPfc::Configuration::m_wqueue_blocks |
maximum number of blocks written per write-queue loop
Definition at line 111 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config(), and XrdPfc::Cache::ProcessWriteTasks().
int XrdPfc::Configuration::m_wqueue_threads |
number of threads writing blocks to disk
Definition at line 112 of file XrdPfc.hh.
Referenced by XrdPfc::Cache::Config().