Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultResourceTunables ¶
func DefaultResourceTunables() [][]string
Types ¶
type ResourceIdentifier ¶
type ResourceIdentifier string
const CephColdHandle ResourceIdentifier = "ceph_cold"
const CephHotHandle ResourceIdentifier = "ceph_hot"
const ConcurrentOp ResourceIdentifier = "concurrent_op"
const MaximumConnections ResourceIdentifier = "max_conns"
const OpenReadTrees ResourceIdentifier = "open_read_trees"
const OpenTrees ResourceIdentifier = "open_trees"
type RezManager ¶
type RezManager struct {
// contains filtered or unexported fields
}
func NewResourceManager ¶
func NewResourceManager(cfg TunableProvider) *RezManager
func (*RezManager) CreateResourcePool ¶
func (rez *RezManager) CreateResourcePool(id ResourceIdentifier, newfunc func() interface{}, delfunc func(v interface{}))
func (*RezManager) Get ¶
func (rez *RezManager) Get(ctx context.Context, id ResourceIdentifier) (*Resource, bte.BTE)
func (*RezManager) MustGet ¶
func (rez *RezManager) MustGet(ctx context.Context, id ResourceIdentifier) *Resource
type TunableProvider ¶
Click to show internal directories.
Click to hide internal directories.