configo icon indicating copy to clipboard operation
configo copied to clipboard

Skip missed etcd keys

Open abashev opened this issue 8 years ago • 3 comments

We are using etcd for storing configuration parameters for different services and usually, in service files, we have lines like that

-e CONFIGO_SOURCE_30='{\"type\": \"etcd\", \"endpoints\": [\"http://${COREOS_PRIVATE_IPV4}:2379\"], \"prefix\": \"applications/worker-defaults/\"}' \
-e CONFIGO_SOURCE_40='{\"type\": \"etcd\", \"endpoints\": [\"http://${COREOS_PRIVATE_IPV4}:2379\"], \"prefix\": \"applications/worker/%i\"}' \

So most of these workers are fine with default parameters and we don't need to customize these settings, but we have to create empty dir /application/worker/something and that is really annoying.

Is it possible to add one more configuration parameter like 'skipOnMissed' or something like that for nicer configuration?

abashev avatar Jun 23 '17 14:06 abashev

Hi @abashev,

Sure! May I ask you to send the error it prints when the dir doesn't exist?

bsideup avatar Jun 23 '17 14:06 bsideup

Something like

Jun 23 11:35:48 cloud-2-worker-01 sh[124630]: 11:35:48.335 [E] Failed to resolve source: 100: Key not found (/applications/backend-worker/BoostDislike) [336227953]

abashev avatar Jun 23 '17 15:06 abashev

@abashev ACK :) Will fix it soon, thanks for reporting!

bsideup avatar Jun 24 '17 13:06 bsideup