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

Adding latency injector option to -dev mode for storage operations #3289

Merged
merged 3 commits into from
Sep 11, 2017

Conversation

chrishoffman
Copy link
Contributor

Adding a general latency injector that can be enabled in dev mode to simulate storage latency while still using the in-memory backend.

)

// LatencyInjector is used to add latency into underlying physical requests
type LatencyInjector struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this and (TransactionalLatencyInjector) is really an implementation of the Physical interface, should we call this LatencyBackend to keep things uniform with other physical backend implementations?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is not a backend itself and just wraps some other backend that is why I didn't call it a backend. It is more analogous to the Cache wrapper.

@jefferai jefferai added this to the 0.8.3 milestone Sep 8, 2017
@chrishoffman chrishoffman merged commit 09f2725 into master Sep 11, 2017
@chrishoffman chrishoffman deleted the phys-latency-injector branch September 11, 2017 18:49
chrishoffman pushed a commit that referenced this pull request Sep 11, 2017
* oss/master:
  Fix navigation and prameters in the 'gcp' auth backend docs. (#3317)
  changelog++
  Adding latency injector option to -dev mode for storage operations (#3289)
chrishoffman pushed a commit that referenced this pull request Sep 14, 2017
* oss/master:
  Adding latency injector option to -dev mode for storage operations (#3289)
  fix: add missing comma to payload (#3308)
  Switching atomic vars to int32 to address panic on some architectures (#3314)
  Update AWS CloudHSM comparison. (#3311)
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.

3 participants