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

Few performance optimization. #960

Merged
merged 2 commits into from
Jul 12, 2018
Merged

Few performance optimization. #960

merged 2 commits into from
Jul 12, 2018

Conversation

wxing1292
Copy link
Contributor

@wxing1292 wxing1292 commented Jul 12, 2018

  • Use exponential backoff for task processing
  • Do not send shard time sync if has sent out replication task

solve #955 #956

do not send shard time sync if has sent out replication task
@wxing1292 wxing1292 requested a review from samarabbas July 12, 2018 20:01
@@ -60,6 +60,8 @@ type (
UpdateTimerAckLevel(ackLevel time.Time) error
GetTimerClusterAckLevel(cluster string) time.Time
UpdateTimerClusterAckLevel(cluster string, ackLevel time.Time) error
GetLastShardSyncTimestamp() time.Time
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should simplify the logic and have generation of sync task limited to replicator processor. This way we don't need all these API changes to ShardContext.

@wxing1292 wxing1292 merged commit 302f239 into master Jul 12, 2018
@wxing1292 wxing1292 deleted the fixes branch July 12, 2018 22:35
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.

2 participants