Comments (4)
I think there's a few ways we could do this:
-
Move the metrics registration process into its own binary that we execute as part of the build/deploy steps. This ensures it happens once per deploy (which is what we really want). I think I prefer this approach.
-
Move the metrics creation back into Terraform. It started this way, but became unsustainable to keep them in sync. Now that metrics creation is rare, we could move it back. It would be ugly, since we'd have to
terraform import
all the existing metrics. -
Establish a lower-level connection to Redis and write the current build-id somewhere. If no value exists, do the registration. This has some complex edge cases. It makes connecting to Redis a SPOF for startups, but we already have that. Another challenge is that we can't use a nice client here, because we don't establish the client until after metrics have been registered (since the client emits metrics).
Other ideas?
from exposure-notifications-server.
I was thinking something along the lines of 1
Separate binary, but deployed as a service.
So when it's deployed, and the container starts, the metrics will register.
from exposure-notifications-server.
Ah - and then set min/max instances to 1?
from exposure-notifications-server.
from exposure-notifications-server.
Related Issues (20)
- Add documentation about debugger
- Remove uptime check on endpoints for export and federation
- Document federation module support
- Disable v1alpha1 by default (allow for flag on still)
- write doc for creating export config and sharing signing keys
- Improve CloudSchedulerJobFailed playbook HOT 3
- Add support for user-report
- Issue section removed for exposure-notifications-internals repo HOT 2
- Unreachable db ping check within health handler
- Server time synchronization tolerance HOT 2
- Upgrade to https://github.com/golang-jwt/jwt
- EXPOSURE Service crashes if STATS_UPLOAD_MINIMUM envar is set to less than 10. HOT 5
- Pullback
- don't block startup on metric initialization HOT 1
- Server graceful shutdown sync
- Switch Cloud Scheduler to UTC
- Self report not included in export-importer functionality
- terraform using deprecated arg HOT 2
- Possible dead lock in the cache package? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exposure-notifications-server.