repl_functions
Replication Functions
레디스 서버 교육 신청 |
레디스 정기점검/기술지원 Redis Technical Support |
레디스 엔터프라이즈 서버 Redis Enterprise Server |
---|
Replication Functions
이 문서는 버전 7.0.8을 기준으로 작성했습니다.
- Full Sync : Master Functions
- Full Sync : Replica Functions
- replication.c Functions
- rdb.c Functions
Full Sync : Master Functions
마스터 서버에서 전체 동기화(full sync) 용도로 사용되는 함수들을 정리했습니다.
replconfCommand()
Redis version 3.0에 만들어졌고, replication.c에 있습니다.
안에 있는 버전(ver)은 각 기능이 해당 버전에서 처음 만들졌다는 표시입니다.
syncCommand()
Redis version 1.0에 만들어졌고, replication.c에 있습니다.
masterTryPartialResynchronization()
replication.c에 있습니다.
startBgsaveForReplication()
replication.c에 있습니다.
rdbSaveToSlavesSockets()
rdb.c에 있습니다.
rdbSaveBackground()
rdb.c에 있습니다.
replicationSetupSlaveForFullResync()
replication.c에 있습니다.
rdbSaveRioWithEOFMark()
rdb.c에 있습니다.
rdbSave()
rdb.c에 있습니다.
rdbSaveRio()
rdb.c에 있습니다.
checkChildrenDone()
server.c에 있습니다.
backgroundSaveDoneHandler()
server.c
backgroundSaveDoneHandlerDisk()
rdb.c
backgroundSaveDoneHandlerSocket()
rdb.c
updateSlavesWaitingBgsave()
replication.c
replicaPutOnline()
replication.c
sendBulkToSlave()
replication.c
Full Sync : Replica Functions
복제 서버에서 전체 동기화(full sync) 용도로 사용되는 함수들을 정리했습니다.
replicaofCommand()
replication.c
replicationSetMaster()
replication.c
connectWithMaster()
replication.c
syncWithMaster()
replication.c
slaveTryPartialResynchronization()
replication.c
readSyncBulkPayload()
Master로 부터 데이터를 받는다. replication.c
rdbLoad()
rdb.c
rdbLoadRioWithLoadingCtx()
rdb.c
replication.c Functions
소스 파일 replication.c에 있는 함수들입니다. 버전 7.0.8 기준으로 작성했습니다.
- ----- Utility functions -----
- replicationGetSlaveName()
- bg_unlink()
- ----- MASTER -----
- createReplicationBacklog()
- resizeReplicationBacklog()
- freeReplicationBacklog()
- createReplicationBacklogIndex ()
- rebaseReplicationBuffer ()
- resetReplicationBuffer ()
- prepareReplicasToWrite()
- feedReplicationBufferWithObject()
- incrementalTrimReplicationBacklog()
- freeReplicaReferencedReplBuffer()
- feedReplicationBuffer()
- replicationFeedSlaves()
- showLatestBacklog()
- replicationFeedStreamFromMasterStream()
- addReplyReplicationBacklog()
- getPsyncInitialOffset()
- replicationSetupSlaveForFullResync()
- masterTryPartialResynchronization()
- startBgsaveForReplication()
- syncCommand()
- replconfCommand()
- replicaPutOnline()
- replicaStartCommandStream()
- removeRDBUsedToSyncReplicas()
- sendBulkToSlave()
- rdbPipeWriteHandlerConnRemoved()
- rdbPipeWriteHandler()
- rdbPipeReadHandler()
- updateSlavesWaitingBgsave()
- changeReplicationId()
- clearReplicationId2()
- shiftReplicationId()
- ----------- SLAVE(REPLICA) -------------
- slaveIsInHandshakeState()
- replicationSendNewlineToMaster()
- replicationEmptyDbCallback()
- replicationCreateMasterClient()
- restartAOFAfterSYNC()
- useDisklessLoad()
- disklessLoadInitTempDb()
- disklessLoadDiscardTempDb()
- replicationAttachToNewMaster()
- readSyncBulkPayload()
- receiveSynchronousResponse()
- sendCommandRaw()
- sendCommand()
- sendCommandArgv()
- slaveTryPartialResynchronization()
- syncWithMaster()
- connectWithMaster()
- undoConnectWithMaster()
- replicationAbortSyncTransfer()
- cancelReplicationHandshake()
- replicationSetMaster()
- replicationUnsetMaster()
- replicationHandleMasterDisconnection()
- replicaofCommand()
- roleCommand()
- replicationSendAck()
- ------ MASTER CACHING FOR PSYNC ----
- replicationCacheMaster()
- replicationCacheMasterUsingMyself()
- replicationDiscardCachedMaster()
- replicationResurrectCachedMaster()
- ----- MIN-SLAVES-TO-WRITE ----
- refreshGoodSlavesCount()
- checkGoodReplicasStatus()
- ----- SYNCHRONOUS REPLICATION ----
- replicationRequestAckFromSlaves()
- replicationCountAcksByOffset()
- waitCommand()
- unblockClientWaitingReplicas()
- processClientsWaitingReplicas()
- replicationGetSlaveOffset()
- ----- REPLICATION CRON ----
- replicationCron()
- shouldStartChildReplication()
- replicationStartPendingFork()
- findReplica()
- getFailoverStateString()
- clearFailoverState()
- abortFailover()
- failoverCommand()
- updateFailoverStatus()
rdb.c Functions
소스 파일 rdb.c에 있는 함수들입니다. 버전 7.0.8 기준으로 작성했습니다.
- rdbReportError()
- rdbWriteRaw()
- rdbSaveType()
- rdbLoadType()
- rdbLoadTime()
- rdbSaveMillisecondTime()
- rdbLoadMillisecondTime()
- rdbSaveLen()
- rdbLoadLenByRef()
- rdbLoadLen()
- rdbEncodeInteger()
- rdbLoadIntegerObject()
- rdbTryIntegerEncoding()
- rdbSaveLzfBlob()
- rdbSaveLzfStringObject()
- rdbLoadLzfStringObject()
- rdbSaveRawString()
- rdbSaveLongLongAsStringObject()
- rdbSaveStringObject()
- rdbGenericLoadStringObject()
- rdbLoadStringObject()
- rdbLoadEncodedStringObject()
- rdbSaveDoubleValue()
- rdbLoadDoubleValue()
- rdbSaveBinaryDoubleValue()
- rdbLoadBinaryDoubleValue()
- rdbSaveBinaryFloatValue()
- rdbLoadBinaryFloatValue()
- rdbSaveObjectType()
- rdbLoadObjectType()
- rdbSaveStreamPEL()
- rdbSaveStreamConsumers()
- rdbSaveObject()
- rdbSavedObjectLen()
- rdbSaveKeyValuePair()
- rdbSaveAuxField()
- rdbSaveAuxFieldStrStr()
- rdbSaveAuxFieldStrInt()
- rdbSaveInfoAuxFields()
- rdbSaveSingleModuleAux()
- rdbSaveFunctions()
- rdbSaveDb()
- rdbSaveRio()
- rdbSaveRioWithEOFMark()
- rdbSave()
- rdbSaveBackground()
- rdbRemoveTempFile()
- rdbLoadCheckModuleValue()
- _ziplistPairsEntryConvertAndValidate()
- ziplistPairsConvertAndValidateIntegrity()
- _ziplistEntryConvertAndValidate()
- _listZiplistEntryConvertAndValidate()
- _lpPairsEntryValidation()
- lpPairsValidateIntegrityAndDups()
- rdbLoadObject()
- startLoading()
- startLoadingFile()
- loadingAbsProgress()
- loadingIncrProgress()
- updateLoadingFileName()
- stopLoading()
- startSaving()
- stopSaving()
- rdbLoadProgressCallback()
- rdbFunctionLoad()
- rdbLoadRio()
- rdbLoadRioWithLoadingCtx()
- rdbLoad()
- backgroundSaveDoneHandlerDisk()
- backgroundSaveDoneHandlerSocket()
- backgroundSaveDoneHandler()
- killRDBChild()
- rdbSaveToSlavesSockets()
- saveCommand()
- bgsaveCommand()
- rdbPopulateSaveInfo()
<< Full Sync Mem-to-Mem | Server Main Memory >> |
---|