lekoder / consul-to-json Goto Github PK
View Code? Open in Web Editor NEWConsul KV-store backup and restore utility
License: ISC License
Consul KV-store backup and restore utility
License: ISC License
When restoring kv with null value, it gets inserted as "null" string.
When trying to restore config which has null key, it exits with:
Cannot read property 'constructor' of null
I've been using this utility successfully but recently the restore failed. The difference from before was that the JSON file was relatively large compared to before (30Mb) and heavily populated with Hashicorp Vault entries which consisted of non-printable characters.
$ consul-to-json restore consul_backup_1610031200.json
Maximum call stack size exceeded
I recovered this by manually removing the Vault entries which at this point I was not yet using.
For a very least test should cover spinning up a bootstraped consul server in isolated environment, populating it with mocked data, reading it back and comparing results.
Acceptance tests fail when trying to restore large JSON file with 100000 keys:
Unhandled rejection Error: connect EADDRNOTAVAIL 127.0.0.1:8500 - Local (127.0.0.1:0)
at Object.exports._errnoException (util.js:1026:11)
at exports._exceptionWithHostPort (util.js:1049:20)
at connect (net.js:875:16)
at net.js:964:9
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
This could be connected with #3
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.