Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShardManager ¶
type ShardManager struct {
// contains filtered or unexported fields
}
ShardManager manager shards use kubernetes ShardManager
func New ¶
func New(cli kubernetes.Interface, stsNamespace string, stsSelector string, port int, log logrus.FieldLogger) *ShardManager
New create a new StatefulSet shards manager
func (*ShardManager) ChangeScale ¶
func (s *ShardManager) ChangeScale(expect int32) error
ChangeScale create or delete Shards according to "expReplicate"
Click to show internal directories.
Click to hide internal directories.