NCBI C++ ToolKit
Classes | Typedefs | Variables
distribution_conf.cpp File Reference
#include "nc_pch.hpp"
#include <corelib/ncbireg.hpp>
#include <util/checksum.hpp>
#include <util/random_gen.hpp>
#include "task_server.hpp"
#include "netcached.hpp"
#include "distribution_conf.hpp"
#include "peer_control.hpp"
#include <random>
+ Include dependency graph for distribution_conf.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  SSrvGroupInfo
 
struct  SSrvMirrorInfo
 

Typedefs

typedef vector< SSrvGroupInfoTSrvGroupsList
 
typedef map< Uint2, TSrvGroupsListTSrvGroupsMap
 
typedef map< Uint2, TServersListTSlot2SrvMap
 
typedef map< Uint8, vector< Uint2 > > TSrv2SlotMap
 

Variables

static SSrvMirrorInfos_MirrorConf = NULL
 
static Uint2 s_MaxSlotNumber = 0
 
static vector< Uint2s_SelfSlots
 
static Uint2 s_CntSlotBuckets = 0
 
static Uint2 s_CntTimeBuckets = 0
 
static Uint4 s_SlotRndShare = numeric_limits<Uint4>::max()
 
static Uint4 s_TimeRndShare = numeric_limits<Uint4>::max()
 
static Uint8 s_SelfID = 0
 
static Uint8 s_SelfTrust = 0
 
static Uint4 s_SelfIP = 0
 
static string s_SelfGroup
 
static string s_SelfName
 
static CMiniMutex s_KeyRndLock
 
static CRandom s_KeyRnd (CRandom::TValue(time(NULL)))
 
static string s_SelfHostIP
 
static CAtomicCounter s_BlobId
 
static Uint4 s_SelfAlias = 0
 
static string s_MirroringSizeFile
 
static string s_PeriodicLogFile
 
static string s_CopyDelayLogFile
 
static FILE * s_CopyDelayLog = NULL
 
static Uint1 s_CntActiveSyncs = 4
 
static Uint1 s_MaxSyncsOneServer = 2
 
static Uint4 s_TaskPrioritySync = 10
 
static Uint2 s_MaxPeerTotalConns = 100
 
static Uint2 s_MaxPeerBGConns = 50
 
static Uint2 s_CntErrorsToThrottle = 10
 
static Uint2 s_CntThrottlesToIpchange = 10
 
static Uint8 s_PeerThrottlePeriod = 10 * kUSecsPerSecond
 
static Uint1 s_PeerTimeout = 2
 
static Uint1 s_BlobListTimeout = 10
 
static Uint8 s_SmallBlobBoundary = 65535
 
static Uint2 s_MaxMirrorQueueSize = 10000
 
static string s_SyncLogFileName
 
static Uint4 s_MaxSlotLogEvents = 0
 
static Uint4 s_CleanLogReserve = 0
 
static Uint4 s_MaxCleanLogBatch = 0
 
static Uint8 s_MinForcedCleanPeriod = 0
 
static Uint4 s_CleanAttemptInterval = 0
 
static Uint8 s_PeriodicSyncInterval = 0
 
static Uint8 s_PeriodicSyncTimeout = 0
 
static Uint8 s_FailedSyncRetryDelay = 0
 
static Uint8 s_NetworkErrorTimeout = 0
 
static Uint8 s_MaxBlobSizeSync = 0
 
static bool s_WarnBlobSizeSync = true
 
static bool s_BlobUpdateHotline = true
 
static bool s_SlotByRawkey = false
 
static const char * kNCReg_NCPoolSection = "mirror"
 
static string kNCReg_NCServerPrefix = "server_"
 
static string kNCReg_NCServerSlotsPrefix = "srv_slots_"
 
static string kNCReg_NCServerTrustPrefix = "srv_trust_"
 

Typedef Documentation

◆ TSlot2SrvMap

Definition at line 62 of file distribution_conf.cpp.

◆ TSrv2SlotMap

typedef map<Uint8, vector<Uint2> > TSrv2SlotMap

Definition at line 63 of file distribution_conf.cpp.

◆ TSrvGroupsList

typedef vector<SSrvGroupInfo> TSrvGroupsList

Definition at line 59 of file distribution_conf.cpp.

◆ TSrvGroupsMap

Definition at line 60 of file distribution_conf.cpp.

Variable Documentation

◆ kNCReg_NCPoolSection

const char* kNCReg_NCPoolSection = "mirror"
static

◆ kNCReg_NCServerPrefix

string kNCReg_NCServerPrefix = "server_"
static

◆ kNCReg_NCServerSlotsPrefix

string kNCReg_NCServerSlotsPrefix = "srv_slots_"
static

◆ kNCReg_NCServerTrustPrefix

string kNCReg_NCServerTrustPrefix = "srv_trust_"
static

◆ s_BlobId

CAtomicCounter s_BlobId
static

◆ s_BlobListTimeout

Uint1 s_BlobListTimeout = 10
static

◆ s_BlobUpdateHotline

bool s_BlobUpdateHotline = true
static

◆ s_CleanAttemptInterval

Uint4 s_CleanAttemptInterval = 0
static

◆ s_CleanLogReserve

Uint4 s_CleanLogReserve = 0
static

◆ s_CntActiveSyncs

Uint1 s_CntActiveSyncs = 4
static

◆ s_CntErrorsToThrottle

Uint2 s_CntErrorsToThrottle = 10
static

◆ s_CntSlotBuckets

Uint2 s_CntSlotBuckets = 0
static

◆ s_CntThrottlesToIpchange

Uint2 s_CntThrottlesToIpchange = 10
static

◆ s_CntTimeBuckets

Uint2 s_CntTimeBuckets = 0
static

◆ s_CopyDelayLog

FILE* s_CopyDelayLog = NULL
static

◆ s_CopyDelayLogFile

string s_CopyDelayLogFile
static

◆ s_FailedSyncRetryDelay

Uint8 s_FailedSyncRetryDelay = 0
static

◆ s_KeyRnd

CRandom s_KeyRnd(CRandom::TValue(time(NULL))) ( CRandom::TValue(time(NULL))  )
static

◆ s_KeyRndLock

CMiniMutex s_KeyRndLock
static

Definition at line 100 of file distribution_conf.cpp.

Referenced by CNCDistributionConf::GenerateBlobKey().

◆ s_MaxBlobSizeSync

Uint8 s_MaxBlobSizeSync = 0
static

◆ s_MaxCleanLogBatch

Uint4 s_MaxCleanLogBatch = 0
static

◆ s_MaxMirrorQueueSize

Uint2 s_MaxMirrorQueueSize = 10000
static

◆ s_MaxPeerBGConns

Uint2 s_MaxPeerBGConns = 50
static

◆ s_MaxPeerTotalConns

Uint2 s_MaxPeerTotalConns = 100
static

◆ s_MaxSlotLogEvents

Uint4 s_MaxSlotLogEvents = 0
static

◆ s_MaxSlotNumber

Uint2 s_MaxSlotNumber = 0
static

◆ s_MaxSyncsOneServer

Uint1 s_MaxSyncsOneServer = 2
static

◆ s_MinForcedCleanPeriod

Uint8 s_MinForcedCleanPeriod = 0
static

◆ s_MirrorConf

SSrvMirrorInfo* s_MirrorConf = NULL
static

◆ s_MirroringSizeFile

string s_MirroringSizeFile
static

◆ s_NetworkErrorTimeout

Uint8 s_NetworkErrorTimeout = 0
static

◆ s_PeerThrottlePeriod

Uint8 s_PeerThrottlePeriod = 10 * kUSecsPerSecond
static

◆ s_PeerTimeout

Uint1 s_PeerTimeout = 2
static

◆ s_PeriodicLogFile

string s_PeriodicLogFile
static

◆ s_PeriodicSyncInterval

Uint8 s_PeriodicSyncInterval = 0
static

◆ s_PeriodicSyncTimeout

Uint8 s_PeriodicSyncTimeout = 0
static

◆ s_SelfAlias

Uint4 s_SelfAlias = 0
static

◆ s_SelfGroup

string s_SelfGroup
static

◆ s_SelfHostIP

string s_SelfHostIP
static

◆ s_SelfID

Uint8 s_SelfID = 0
static

◆ s_SelfIP

Uint4 s_SelfIP = 0
static

◆ s_SelfName

string s_SelfName
static

◆ s_SelfSlots

vector<Uint2> s_SelfSlots
static

◆ s_SelfTrust

Uint8 s_SelfTrust = 0
static

◆ s_SlotByRawkey

bool s_SlotByRawkey = false
static

◆ s_SlotRndShare

Uint4 s_SlotRndShare = numeric_limits<Uint4>::max()
static

◆ s_SmallBlobBoundary

Uint8 s_SmallBlobBoundary = 65535
static

◆ s_SyncLogFileName

string s_SyncLogFileName
static

◆ s_TaskPrioritySync

Uint4 s_TaskPrioritySync = 10
static

◆ s_TimeRndShare

Uint4 s_TimeRndShare = numeric_limits<Uint4>::max()
static

◆ s_WarnBlobSizeSync

bool s_WarnBlobSizeSync = true
static
Modified on Sat Feb 24 07:46:30 2024 by modify_doxy.py rev. 669887