-
Notifications
You must be signed in to change notification settings - Fork 15
currently symbolapi does not use consul, if the cluster is unhealthy … #133
Conversation
Are you sure you meant to remove the class include? From your comment it seems like you meant to remove the require parameter of the service. |
Well, in the scenario you outlined rhelmer, consul is hosed, we're hosed enough that symbolapi coming up bad will be the least of our worries. :) I think it's actually valuable to keep these bits in there versus the risk of a bad puppet run. One day, we may just want to use our standard way of passing k/v to symbol nodes. |
The problem is I don't want
Although this app is part of the Socorro cluster, it's not really a "socorro app" per se. It's totally standalone, and the idea of explaining to users of the service (Gecko developers) that it's busted because it can't connect to the Socorro Consul cluster strikes me as uncomfortable and weird :) |
Imho JP makes a good pont re: future-proofing this service - moreover, I get nervous any time we willingly introduce a ❄️ into the infra. Furthermore, it should be noted that That said, if we really want to do this, here's a potential solution that doesn't involve re-jiggering a bunch of Puppet: # puppet/modules/socorro/manifests/role/symbolapi.pp
class socorro::role::symbolapi {
include socorro::role::common
# Symbolapi nodes are standalone and should not join the larger cluster.
# The creates param will always match, therefore the exec will never trigger.
Exec['join_consul_cluster'] {
creates => '/'
}
service {
'mozilla-snappy':
ensure => running,
enable => true
}
} |
@@ -1,8 +1,6 @@ | |||
# Set up a symbolapi node. | |||
class socorro::role::symbolapi { | |||
|
|||
include socorro::role::common | |||
|
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.
As an aside, the service
below will fail because you left the require
param in place.
cd5d51a
to
4b84ca2
Compare
Squishy squish then |
…then puppet apply fails for no useful reason
39ba2a3
to
b607f5a
Compare
currently symbolapi does not use consul, if the cluster is unhealthy …
…then puppet apply fails for no useful reason
r? @phrawzty @jdotpz - I don't know that we'll ever really need to do any configuration here, this service is totally standalone and public (it provides an on-demand symbolication service to the Gecko Profiler, using the public S3 symbols bucket)