Giter Club home page Giter Club logo

kvexpress's Issues

Add some tests.

There's none at the moment.

Would be nice to have some automated ones.

Logging is too verbose.

Which is quite nice - helps with all sorts of debugging - but will need to be tuned when we're in production.

Make a way to do that.

Tokens

We sometimes need to use them.

Right now there's no token awareness at all.

Add `url` command.

To grab a file from a URL and place it as a file.

So that we could grab files as a replacement if necessary.

Blank lines are annoying.

With the --sorted flag - if there are lots of blank lines then it keeps them all.

Need to remove them - don't want to shell out to uniq to do it.

Doesn't copy the file to .last if the checksum in the KV store matches.

You end up in this state:

[staging]root@i-c972d41e:/etc/consul-template/output# ls -al
total 48
drwxr-x--- 2 root root  4096 Nov  3 22:39 .
drwxr-x--- 7 root root  4096 Aug  7 16:33 ..
-rw-r--r-- 1 root root 16516 Nov  3 22:39 config_hosts
-rw-r----- 1 root root 16335 Nov  3 22:39 config_hosts.compare
-rw-r----- 1 root root    22 Nov  3 22:39 config_hosts.last

Where - the files didn't match - but the checksum inside the KV store matched:

[staging]root@i-c972d41e:/etc/consul-template/output# shasum -a 256 config_hosts.compare
deab902e0ab2f432f0ebc68035992f10a743059222cbea991f3345ba195c4dad  config_hosts.compare

So it didn't update the KV store - but it leaves the .last file in the wrong state.

Add compression?

So that we can put larger files in AND/OR use less network traffic.

When there's a folder the path doesn't work right.

Example output:

Oct 30 15:48:58 i-c972d41e kvexpress:  2015/10/30 15:48:58 in: file='compare' full_path='/etc/consul-template/output/etc/consul-template/output/config_consul_config.ini.compare'
Oct 30 15:48:58 i-c972d41e kvexpress:  2015/10/30 15:48:58 in: file='last' full_path='/etc/consul-template/output/etc/consul-template/output/config_consul_config.ini.last'

May need to set the data, checksum and updated keys all at once.

To deal with possible race condition where:

  1. We're watching the "data" key.
  2. We update the "data" key - but not the "checksum" or the "updated" keys.
  3. Watches fire - and they checksum against the old version.

A possible alternative solution:

May need to instead watch the "updated" key as that's updated last.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.