MCPcopy Create free account

hub / github.com/olric-data/olric / functions

Functions1,316 in github.com/olric-data/olric

↓ 1 callersMethodasyncPutOnCluster
(e *env, nt storage.Entry)
internal/dmap/put.go:153
↓ 1 callersMethodbackupCopies
()
internal/cluster/balancer/balancer.go:142
↓ 1 callersMethodbalance
()
internal/cluster/balancer/balancer.go:207
↓ 1 callersMethodbgrunner
bgrunner runs in the background and reads incoming commands from the detached client.
internal/pubsub/pubsub.go:126
↓ 1 callersMethodbootstrapCoordinator
bootstrapCoordinator prepares the very first routing table and bootstraps the coordinator node.
internal/cluster/routingtable/discovery.go:32
↓ 1 callersMethodcallCompactionOnFragment
(f *fragment)
internal/dmap/compaction.go:28
↓ 1 callersMethodcallStartedCallback
callStartedCallback checks passed checkpoint count and calls the callback function.
olric.go:281
↓ 1 callersFunctioncheckEmptyStorageEngine
(t *testing.T, s *Service)
internal/dmap/delete_test.go:35
↓ 1 callersMethodcheckOwnership
(part *partitions.Partition)
internal/dmap/balance.go:72
↓ 1 callersMethodcheckPutConditions
(e *env)
internal/dmap/put.go:257
↓ 1 callersMethodcompactionWorker
()
internal/dmap/compaction.go:107
↓ 1 callersFunctioncreateTmpFile
(t *testing.T, pattern string)
config/config_test.go:117
↓ 1 callersMethoddeleteBackupOnCluster
(hkey uint64, key string)
internal/dmap/delete.go:72
↓ 1 callersMethoddeleteEmptyFragments
()
internal/dmap/janitor.go:70
↓ 1 callersMethoddeleteFromFragment
(key string, kind partitions.Kind)
internal/dmap/delete.go:36
↓ 1 callersMethoddeleteKey
(key string)
internal/dmap/delete.go:121
↓ 1 callersMethoddestroyLocalDMap
(name string)
internal/dmap/destroy_handlers.go:38
↓ 1 callersMethoddistributeBackups
(partID uint64)
internal/cluster/routingtable/distribute.go:123
↓ 1 callersMethoddistributePrimaryCopies
(partID uint64)
internal/cluster/routingtable/distribute.go:25
↓ 1 callersMethoddoCompaction
(partID uint64)
internal/dmap/compaction.go:52
↓ 1 callersMethodeventLoop
eventLoop awaits for messages from memberlist and broadcasts them to event listeners.
internal/discovery/events.go:42
↓ 1 callersMethodevictKeysAtBackground
()
internal/dmap/eviction.go:69
↓ 1 callersMethodevictTable
(t *table.Table)
internal/kvstore/compaction.go:26
↓ 1 callersMethodexecOnPartition
(ctx context.Context, partID uint64)
pipeline.go:486
↓ 1 callersMethodfetchData
()
cluster_iterator.go:186
↓ 1 callersMethodfetchRoutingTablePeriodically
()
cluster_iterator.go:267
↓ 1 callersMethodfetchRoutingTablePeriodically
fetchRoutingTablePeriodically periodically updates the routing table by invoking fetchRoutingTable at configured intervals. It stops gracefully when t
cluster_client.go:777
↓ 1 callersFunctiongetBindIPFromNetworkInterface
(addrs []net.Addr)
config/network.go:41
↓ 1 callersFunctiongetFreePort
getFreePort copied from testutil package to prevent cycle import.
internal/server/server_test.go:33
↓ 1 callersMethodgetOnCluster
getOnCluster retrieves the storage.Entry for a given hashed key and key string from cluster nodes with read quorum. It ensures data consistency via re
internal/dmap/get.go:330
↓ 1 callersMethodgetOnFragment
getOnFragment retrieves an entry from the associated fragment based on the provided environment details. It returns the found entry or an error if the
internal/dmap/get.go:60
↓ 1 callersFunctiongetPipelineCmdsFromPool
()
pipeline.go:651
↓ 1 callersMethodgetReplicaOwners
(partID uint64)
internal/cluster/routingtable/distribute.go:99
↓ 1 callersMethodhandleEvent
(event memberlist.NodeEvent)
internal/discovery/events.go:29
↓ 1 callersMethodincreaseUptimeSeconds
increaseUptimeSeconds calls UptimeSeconds.Increase function every second.
internal/discovery/discovery.go:135
↓ 1 callersFunctioninitializeServices
(db *Olric)
olric.go:172
↓ 1 callersMethodisAlive
()
internal/cluster/balancer/balancer.go:60
↓ 1 callersMethodisCompactionOK
(t *table.Table)
internal/kvstore/compaction.go:79
↓ 1 callersMethodisKeyIdle
(hkey uint64)
internal/dmap/eviction.go:53
↓ 1 callersFunctionisOwner
(member discovery.Member, owners []consistent.Member)
internal/cluster/routingtable/distribute.go:114
↓ 1 callersMethodisTableExpired
(recycledAt int64)
internal/kvstore/compaction.go:69
↓ 1 callersMethodleaseKey
leaseKey tries to update the expiry of the key by verifying token.
internal/dmap/lock.go:166
↓ 1 callersMethodlistenClusterEvents
(eventCh chan *discovery.ClusterEvent)
internal/cluster/routingtable/routingtable.go:321
↓ 1 callersFunctionloadDMapConfig
(c *loader.Loader)
config/load.go:62
↓ 1 callersFunctionloadMemberlistConfig
loadMemberlistConfig creates a new *memberlist.Config by parsing olric.yaml
config/load.go:145
↓ 1 callersMethodloadServiceDiscoveryPlugin
()
internal/discovery/discovery.go:95
↓ 1 callersMethodlookupOnOwners
lookupOnOwners collects versions of a key/value pair on the partition owner by including previous partition owners.
internal/dmap/get.go:151
↓ 1 callersMethodlookupOnPreviousOwner
lookupOnPreviousOwner retrieves the version of a key from a previous owner in the cluster. It communicates with the specified owner node and decodes t
internal/dmap/get.go:89
↓ 1 callersMethodlookupOnReplicas
lookupOnReplicas retrieves data from replica nodes for the given hash key and key, returning a list of versioned entries.
internal/dmap/get.go:222
↓ 1 callersMethodlookupOnThisNode
lookupOnThisNode searches for a key's version on the current node, considering only the primary partition owner.
internal/dmap/get.go:118
↓ 1 callersFunctionmapYamlToConfig
mapYamlToConfig maps a parsed YAML to related configuration struct.
config/load.go:33
↓ 1 callersMethodmergeFragments
(part *partitions.Partition, fp *fragmentPack)
internal/dmap/balance.go:57
↓ 1 callersFunctionnewBalancerForTest
(e *environment.Environment)
internal/cluster/balancer/balancer_test.go:53
↓ 1 callersMethodnewDelegate
newDelegate returns a new delegate instance.
internal/discovery/delegate.go:23
↓ 1 callersMethodnewService
(e *environment.Environment)
internal/testcluster/testcluster.go:63
↓ 1 callersFunctionnewTestOlricWithConfig
newTestOlricWithConfig creates a new Olric instance with the given configuration. This function is intended for internal use. Please use testOlricClus
olric_test.go:34
↓ 1 callersMethodnext
()
cluster_iterator.go:202
↓ 1 callersMethodpickNodeRoundRobin
()
internal/server/client.go:91
↓ 1 callersFunctionprepareConfig
(c *config.Config)
olric.go:140
↓ 1 callersMethodprepareEntry
(e *env)
internal/dmap/put.go:96
↓ 1 callersMethodprepareLeftOverDataReport
()
internal/cluster/routingtable/update.go:34
↓ 1 callersFunctionprepareTTL
(e *env)
internal/dmap/put.go:47
↓ 1 callersFunctionprepareTableSize
(raw interface{})
internal/kvstore/kvstore.go:127
↓ 1 callersMethodprimaryCopies
()
internal/cluster/balancer/balancer.go:100
↓ 1 callersMethodprocessClusterEvent
(event *discovery.ClusterEvent)
internal/cluster/routingtable/routingtable.go:262
↓ 1 callersMethodprocessLeftOverDataReports
(reports map[discovery.Member]*leftOverDataReport)
internal/cluster/routingtable/left_over_data.go:22
↓ 1 callersMethodpushPeriodically
()
internal/cluster/routingtable/routingtable.go:334
↓ 1 callersMethodputOnCluster
(e *env)
internal/dmap/put.go:292
↓ 1 callersMethodputOnReplicaFragment
(e *env)
internal/dmap/put.go:105
↓ 1 callersMethodreadRepair
readRepair performs synchronization of inconsistent replicas by applying the winning version to out-of-sync nodes.
internal/dmap/get.go:274
↓ 1 callersMethodregisterCommandHandlers
()
olric.go:271
↓ 1 callersFunctionregisterErrors
registerErrors registers application-specific errors with their corresponding prefixes in the error management system.
olric.go:496
↓ 1 callersFunctionregisterErrors
()
internal/dmap/service.go:61
↓ 1 callersFunctionregisterErrors
()
internal/cluster/routingtable/routingtable.go:81
↓ 1 callersFunctionrequiredSizeForAnEntry
(e storage.Entry)
internal/kvstore/kvstore.go:123
↓ 1 callersMethodreset
()
cluster_iterator.go:196
↓ 1 callersMethodsanitizeAndSortVersions
sanitizeAndSortVersions removes nil versions from the input slice and sorts the remaining versions by recency.
internal/dmap/get.go:206
↓ 1 callersMethodscanFragmentForEviction
(partID uint64, name string, f *fragment)
internal/dmap/eviction.go:114
↓ 1 callersMethodscanOnFragment
(f *fragment, cursor uint64, sc *ScanConfig)
internal/dmap/scan_handlers.go:26
↓ 1 callersMethodsetLRUEvictionStats
(e *env)
internal/dmap/put.go:211
↓ 1 callersMethodsetOwnedPartitionCount
()
internal/cluster/routingtable/routingtable.go:158
↓ 1 callersMethodsetSignature
(s uint64)
internal/cluster/routingtable/routingtable.go:150
↓ 1 callersMethodsyncCluster
()
internal/testcluster/testcluster.go:103
↓ 1 callersMethodsyncPutOnCluster
(e *env, nt storage.Entry)
internal/dmap/put.go:174
↓ 1 callersFunctiontestPubSubServer
(addr string, done chan bool)
internal/pubsub/pubsub_test.go:38
↓ 1 callersMethodtriggerCompaction
()
internal/dmap/compaction.go:72
↓ 1 callersMethodtryLock
tryLock takes a deadline and env and sets a key-value pair by using Put with NX and PX commands. It tries to acquire the lock 100 times per second if
internal/dmap/lock.go:93
↓ 1 callersMethodunlockKey
unlockKey tries to unlock the lock by verifying the lock with token.
internal/dmap/lock.go:39
↓ 1 callersMethodupdateCursor
(owner string, cursor uint64)
cluster_iterator.go:66
↓ 1 callersMethodupdateRoutingTableOnMember
(data []byte, member discovery.Member)
internal/cluster/routingtable/update.go:50
↓ 1 callersMethodvalidateMemberlistConfig
()
config/memberlist.go:26
↓ 1 callersMethodverifyRoutingTable
(id uint64, table map[uint64]*route)
internal/cluster/routingtable/operations.go:47
↓ 1 callersMethodwaitForInterrupt
waitForInterrupt waits for termination signals (SIGTERM, SIGINT) to gracefully shut down the Olric server instance.
cmd/olric-server/server/server.go:54
↓ 1 callersMethodwritePutCommand
writePutCommand constructs and returns a new protocol.Put command based on the provided key, value, and configuration options.
cluster_client.go:87
MethodAccept
Accept waits for and returns the next connection to the ListenerWrapper, applying TCP keep-alive settings if specified.
internal/server/server.go:120
FunctionBenchmarkLocker
(b *testing.B)
internal/locker/locker_test.go:128
FunctionBenchmarkLockerMoreKeys
(b *testing.B)
internal/locker/locker_test.go:147
FunctionBenchmarkLockerParallel
(b *testing.B)
internal/locker/locker_test.go:136
FunctionBytesToString
BytesToString converts byte slice to string.
internal/util/unsafe.go:37
MethodCheck
Check checks the key existence.
internal/kvstore/kvstore.go:413
← previousnext →601–700 of 1,316, ranked by callers