-
Notifications
You must be signed in to change notification settings - Fork 250
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
Add metrics for first deploy success, provision latency #1426
Conversation
4ef598e
to
3bc334c
Compare
a365d15
to
0346f13
Compare
deploy-service/common/src/main/java/com/pinterest/deployservice/handler/PingHandler.java
Outdated
Show resolved
Hide resolved
0346f13
to
641979b
Compare
3bc334c
to
cf1a80f
Compare
641979b
to
a2c56d9
Compare
cf1a80f
to
edd750e
Compare
2a35306
to
925544c
Compare
commit-id:8fdb7dc7 Fix condition for first deploy
925544c
to
de3d980
Compare
@@ -51,7 +51,7 @@ public class DBHostDAOImpl implements HostDAO { | |||
private static final String GET_GROUP_SIZE = "SELECT COUNT(host_id) FROM hosts WHERE group_name=?"; | |||
private static final String GET_ALL_HOSTS_BY_GROUP = "SELECT * FROM hosts WHERE group_name=? AND state!='TERMINATING'"; | |||
private static final String GET_HOST_BY_NAME = "SELECT * FROM hosts WHERE host_name=?"; | |||
private static final String GET_HOST_BY_HOSTID = "SELECT * FROM hosts WHERE host_id=?"; | |||
private static final String GET_HOST_BY_HOSTID = "SELECT * FROM hosts WHERE host_id=? ORDER BY create_date"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason to update this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. The current order is indeterministic. The new usage bellow will benefit from the ordering. I also checked code references and no existing code depends on the order of this query.
Add metrics for first deploy success, provision latency and deploy latency
Stack: