Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track more stats and report errors for shards #2398

Merged
merged 4 commits into from
Apr 23, 2015

Conversation

corylanou
Copy link
Contributor

No description provided.

@toddboom
Copy link
Contributor

👍 this is awesome!

toddboom added a commit that referenced this pull request Apr 23, 2015
Track more stats and report errors for shards
@toddboom toddboom merged commit 6b76bef into master Apr 23, 2015
@toddboom toddboom deleted the snapshot-backup-err-loggin branch April 23, 2015 02:08
@@ -1188,6 +1188,8 @@ func (s *Server) applyCreateShardGroupIfNotExists(m *messaging.Message) (err err
// Generate an ID for each shard.
for _, sh := range g.Shards {
sh.ID = tx.nextShardID()
sh.stats = NewStats(fmt.Sprintf("shard %d", sh.ID))
sh.stats.Inc("create")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why store this statistic? A shard is created once. Why store it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only for debugging. We have an issue where the shard store is closed, and I need to find out if it's shards we open from disk, or create from memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants