Documentation ¶
Index ¶
- type Config
- type Server
- func (s *Server) ConfirmDispatchTask(ctx context.Context, req *pb.ConfirmDispatchTaskRequest) (*pb.ConfirmDispatchTaskResponse, error)
- func (s *Server) PreDispatchTask(ctx context.Context, req *pb.PreDispatchTaskRequest) (*pb.PreDispatchTaskResponse, error)
- func (s *Server) Run(ctx context.Context) error
- func (s *Server) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Name string `toml:"name" json:"name"` LogConf logutil.Config `toml:"log" json:"log"` Join string `toml:"join" json:"join" ` Addr string `toml:"addr" json:"addr"` AdvertiseAddr string `toml:"advertise-addr" json:"advertise-addr"` Labels map[string]string `toml:"labels" json:"labels"` // EnableGCTuning enables a GC tuning mechanism that adjusts the GC frequency // according to the used memory with reference to the total memory. It can be // enabled when the executor can consume almost all the memory of the // container/machine. EnableGCTuning bool `toml:"enable-gc-tuning" json:"enable-gc-tuning"` // TODO: in the future executors should share a same ttl from server-master KeepAliveTTLStr string `toml:"keepalive-ttl" json:"keepalive-ttl"` KeepAliveIntervalStr string `toml:"keepalive-interval" json:"keepalive-interval"` RPCTimeoutStr string `toml:"rpc-timeout" json:"rpc-timeout"` KeepAliveTTL time.Duration `toml:"-" json:"-"` KeepAliveInterval time.Duration `toml:"-" json:"-"` RPCTimeout time.Duration `toml:"-" json:"-"` Security *security.Credential `toml:"security" json:"security"` }
Config is the configuration.
func GetDefaultExecutorConfig ¶
func GetDefaultExecutorConfig() *Config
GetDefaultExecutorConfig returns a default executor config
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is an executor server.
func (*Server) ConfirmDispatchTask ¶
func (s *Server) ConfirmDispatchTask(ctx context.Context, req *pb.ConfirmDispatchTaskRequest) (*pb.ConfirmDispatchTaskResponse, error)
ConfirmDispatchTask implements Executor.ConfirmDispatchTask
func (*Server) PreDispatchTask ¶
func (s *Server) PreDispatchTask(ctx context.Context, req *pb.PreDispatchTaskRequest) (*pb.PreDispatchTaskResponse, error)
PreDispatchTask implements Executor.PreDispatchTask
Click to show internal directories.
Click to hide internal directories.