Documentation ¶
Index ¶
- Constants
- type Config
- type Error
- type Machine
- type ProxyInfo
- func (p *ProxyInfo) Clients() []string
- func (p *ProxyInfo) IsLocal(serverAlias, clientAddr string) bool
- func (p *ProxyInfo) IsProxy(serverAlias, clientAddr string) bool
- func (p *ProxyInfo) LocalWith(clientAddr string) string
- func (p *ProxyInfo) ProxyOf(clientAddr string) string
- func (p *ProxyInfo) ServerClients(server string) []string
- func (p *ProxyInfo) Servers() []string
Constants ¶
View Source
const ( ClientMachine = iota ReplicaMachine MasterMachine )
View Source
const REMOTE = "none"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Protocol string Alias string MachineType Machine // associates client/replica alias with the address ClientAddrs map[string]string ReplicaAddrs map[string]string // -- master info -- MasterAlias string MasterPort int MasterAddr string // -- replica info -- // do not execute client commands Noop bool // epaxos thrifty mode Thrifty bool // optimized reads (when available) Optread bool Leaderless bool // replicas send replies directly to clients Fast bool // -- client info -- // number of client requests Reqs int // duration during which a client run RunTime time.Duration // ration of writes Writes int // conflict ratio Conflicts int // the size of payload CommandSize int // number of clones of each client Clones int // wait reply from the closest replica WaitClosest bool Pipeline bool // when pipelining the frequency of syncs Syncs int // when pipelining the maximal number of pending commands Pendings int // Hot key for this set of clients Key int // quorum config file Quorum string Proxy *ProxyInfo }
func (*Config) MapClientToIP ¶
func (*Config) MapReplicaToIP ¶
type ProxyInfo ¶
type ProxyInfo struct {
// contains filtered or unexported fields
}
func (*ProxyInfo) ServerClients ¶
Click to show internal directories.
Click to hide internal directories.