Skip to content

Automatic top up after registration - #1358

Merged
vkuznecovas merged 1 commit into
masterfrom
top-up-after-registration
Oct 18, 2019
Merged

Automatic top up after registration#1358
vkuznecovas merged 1 commit into
masterfrom
top-up-after-registration

Conversation

@vkuznecovas

Copy link
Copy Markdown
Contributor

We'll now top up the channel after a succesful registration

Closes #1294

Comment thread core/discovery/discovery.go Outdated
Comment thread core/transactor/topper_upper.go Outdated
Comment thread core/transactor/topper_upper.go Outdated
Comment thread core/transactor/topper_upper_test.go
@vkuznecovas
vkuznecovas force-pushed the top-up-after-registration branch 2 times, most recently from 76afa38 to 5e547c3 Compare October 17, 2019 07:06
Comment thread core/discovery/discovery.go Outdated
Comment thread core/transactor/topper_upper.go Outdated
Comment thread core/transactor/topper_upper_test.go Outdated
@vkuznecovas
vkuznecovas force-pushed the top-up-after-registration branch 3 times, most recently from ba02836 to c3a0cbc Compare October 17, 2019 12:47
if err != nil {
log.Warnf("could not top up newly registered identity channel %v. Will retry", err)
if i+1 == tu.retryAttempts {
log.Errorf("top up failed after multiple attempts, aborting", err)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We probably should monitor such metric. This would probably mean that transactor is either:

  • very loaded
  • unreachable
  • down
  • malfunctioning

Report spikes from such events would signal us to take actions immediately.
We could report such metric to quality oracle. We should probably have a ticket for this and for similar cases.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This should probably go under transactor monitoring itself.

We'll now top up the channel after a succesful registration
@vkuznecovas
vkuznecovas force-pushed the top-up-after-registration branch from c3a0cbc to 6f96420 Compare October 18, 2019 07:19
@vkuznecovas
vkuznecovas merged commit 7046668 into master Oct 18, 2019
@vkuznecovas
vkuznecovas deleted the top-up-after-registration branch October 18, 2019 08:00
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.

New consumer channel auto top-up

5 participants