Documentation ¶
Index ¶
- func AnalyzeMongoLogs(loginfo *mdb.LogInfo, filenames []string) error
- func CollectCluserDetails(stats *mdb.ClusterStats, client *mongo.Client, ...) error
- func CollectIndexStats(index *mdb.IndexStats, client *mongo.Client) error
- func DuplicateIndexesFromFile(index *mdb.IndexStats, client *mongo.Client, filename string) error
- func GetClusterSummary(version string, client *mongo.Client) string
- func MonitorWiredTigerCache(version string, client *mongo.Client)
- func Run(fullVersion string)
- func StartSimulation(runner *sim.Runner) error
- type Comparison
- type Model
- type Robot
- type Seed
- func (f *Seed) SeedAllDemoData(client *mongo.Client) error
- func (f *Seed) SeedData(client *mongo.Client) error
- func (f *Seed) SeedFavorites(client *mongo.Client) error
- func (f *Seed) SeedVehicles(client *mongo.Client) error
- func (f *Seed) SetCollection(collection string)
- func (f *Seed) SetDatabase(database string)
- func (f *Seed) SetFile(file string)
- func (f *Seed) SetIsDrop(isDrop bool)
- func (f *Seed) SetNumberConnections(conns int)
- func (f *Seed) SetShowProgress(showProgress bool)
- func (f *Seed) SetTotal(total int)
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnalyzeMongoLogs ¶ added in v1.0.4
AnalyzeMongoLogs a helper function to analyze logs
func CollectCluserDetails ¶ added in v1.0.4
func CollectCluserDetails(stats *mdb.ClusterStats, client *mongo.Client, connString connstring.ConnString) error
CollectCluserDetails collects cluster details
func CollectIndexStats ¶ added in v1.0.4
func CollectIndexStats(index *mdb.IndexStats, client *mongo.Client) error
CollectIndexStats collects all indexes stats
func DuplicateIndexesFromFile ¶ added in v1.0.4
DuplicateIndexesFromFile duplicate indexes from definitions defined in a file
func GetClusterSummary ¶ added in v1.0.4
GetClusterSummary returns MongoDB cluster summary
func MonitorWiredTigerCache ¶ added in v1.0.4
MonitorWiredTigerCache monitor wiredTiger cache
func StartSimulation ¶ added in v1.0.4
StartSimulation kicks off simulation
Types ¶
type Comparison ¶
type Comparison struct { Logger *gox.Logger `bson:"keyhole"` SourceStats *mdb.ClusterStats `bson:"source"` TargetStats *mdb.ClusterStats `bson:"target"` // contains filtered or unexported fields }
Comparison contains parameters of comparison parameters
func NewComparison ¶
func NewComparison(keyholeVersion string) *Comparison
NewComparison returns *Comparison
func (*Comparison) Compare ¶ added in v1.0.6
func (p *Comparison) Compare(source string, target string) error
Compare executes compare commands
func (*Comparison) OutputBSON ¶
func (p *Comparison) OutputBSON() error
OutputBSON writes bson data to a file
func (*Comparison) SetNoColor ¶
func (p *Comparison) SetNoColor(nocolor bool)
SetNoColor set nocolor flag
func (*Comparison) SetVerbose ¶
func (p *Comparison) SetVerbose(verbose bool)
SetVerbose sets verbose
type Robot ¶ added in v1.0.4
type Robot struct { ID string `json:"_id" bson:"_id"` ModelID string `json:"modelId,omitempty" bson:"modelId,omitempty"` Notes string `json:"notes" bson:"notes"` BatteryPct float32 `json:"batteryPct,omitempty" bson:"batteryPct,omitempty"` Tasks []Task `json:"tasks" bson:"tasks"` }
Robot -
type Seed ¶ added in v1.0.4
type Seed struct {
// contains filtered or unexported fields
}
Seed seeds feeder
func (*Seed) SeedAllDemoData ¶ added in v1.0.4
SeedAllDemoData - seed data for demo
models: { "_id": string "name": string, "description": string "year": integer }
robots: { "_id": string "modelId": string "notes": string, "batteryPct": float, "tasks": [{"for": string, "minutesUsed": integer}] }
func (*Seed) SeedFavorites ¶ added in v1.0.4
SeedFavorites seeds demo data of collection favorites
func (*Seed) SeedVehicles ¶ added in v1.0.4
SeedVehicles seeds vehicles collection
func (*Seed) SetCollection ¶ added in v1.0.4
SetCollection set collection
func (*Seed) SetDatabase ¶ added in v1.0.4
SetDatabase set database
func (*Seed) SetNumberConnections ¶ added in v1.0.4
SetNumberConnections set conns
func (*Seed) SetShowProgress ¶ added in v1.0.4
SetShowProgress set showProgress