Documentation
¶
Index ¶
- Variables
- func HttpSender(cfg *Config)
- func Process(cfg *Config, state *State)
- func ReadCacheManagerAddressFile(cmAddsFile string) (map[cm.ServiceName]string, cm.ServiceName)
- func Serve0mq(cfg *Config)
- func Serve0mq2(cfg *Config)
- func ServeHttp(cfg *Config)
- type CallsAndCallers
- type Config
- type HistoryItem
- type HttpBufferElement
- type HttpSendBuffer
- type HttpSendInvalidateCallRequest
- type HttpSendSaveCallsRequest
- type ProfileState
- type State
Constants ¶
This section is empty.
Variables ¶
View Source
var GcStart = time.Now()
View Source
var HttpBatchLimit = 1
TODO: Move those to arguments of the cache manager
View Source
var HttpQueue = make(chan interface{}, cm.QueueSize)
View Source
var HttpTimeoutDuration = time.Microsecond * 500
View Source
var LogStart = time.Now()
View Source
var ToEvict = CallsAndCallers{Dict: make(map[cm.ServiceName]map[cm.CallArgs]struct{})}
View Source
var ToEvictSize = 1000
View Source
var UserCacheSize = 80
Functions ¶
func HttpSender ¶
func HttpSender(cfg *Config)
func ReadCacheManagerAddressFile ¶
func ReadCacheManagerAddressFile(cmAddsFile string) (map[cm.ServiceName]string, cm.ServiceName)
ReadCacheManagerAddressFile returns a tuple of 1. a map from service name to cache manager address 2. the service name this cache manager is responsible for
Types ¶
type CallsAndCallers ¶
type CallsAndCallers struct {
Dict map[cm.ServiceName]map[cm.CallArgs]struct{}
}
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) GetCacheManagerAddress ¶
func (cfg *Config) GetCacheManagerAddress(name cm.ServiceName) string
func (*Config) GetNeighbors ¶
type HistoryItem ¶
TODO: Maybe it makes sense to have both writes and callargs sets!
type HttpBufferElement ¶
type HttpSendBuffer ¶
type HttpSendBuffer struct {
Callers map[cm.ServiceName]HttpBufferElement
}
type HttpSendInvalidateCallRequest ¶
type HttpSendInvalidateCallRequest struct {
InvSet map[cm.ServiceName]map[cm.CallArgs]struct{}
}
type HttpSendSaveCallsRequest ¶
type HttpSendSaveCallsRequest struct { Request cm.SaveCallsRequest Caller cm.ServiceName }
Click to show internal directories.
Click to hide internal directories.