--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/CANhgQXtegN-WVmJfcb_kQekWg25iVKC1w4P7tJ_rB%2BqzQY3owg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/CADt6FWPS_q4s%2B3SVs%3DzDaOv0iaFg7KD8NZ1MOeyB7R3-Q6iX5w%40mail.gmail.com.
On Oct 23, 2014 5:04 PM, "Andy Parker" <an...@puppetlabs.com> wrote:
>
> So what all would be changing?
...
> 2. YAML files that the master and agent write would move to JSON (node, facts, last_run_summary, state, etc.).
Please store these pretty-printed rather than minimized - one long, unindented line of JSON is pretty intolerable to read for a human. having to run them through a pretty-printer manually is feasible but cumbersome and not user-friendly.
It might even make sense to have an flag to always pretty-print, even for the other cases, in case a human needs to troubleshoot.
Wil
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/CAMmm3r4QvecPOiMTcYgRJ-Vhdedo2_NveL6Jxb-Nozeh0%2BqSmw%40mail.gmail.com.
--
Erik Dalén
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/CAAAzDLeNghCj3M61S%2BYVEdEEUkDB-Nkq3iVaOJBpvyCE1LAn2A%40mail.gmail.com.
Wil
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/CAMmm3r4QvecPOiMTcYgRJ-Vhdedo2_NveL6Jxb-Nozeh0%2BqSmw%40mail.gmail.com.
Especially if we focus on getting the static catalog to work, all file serving turns into a plain HTTP get, and it should skip all of the Puppet transfer, encoding, etc.
--http://puppetlabs.com/ | http://about.me/lak | @puppetmasterd
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/FC42257B-5129-4E2D-9DED-4D5AE6888740%40puppetlabs.com.
Pretty printing introduces a significant overhead. On a test catalog that we have (the one produced by our many_modules benchmark) it increases the space needed by 52% (JSON.pretty_generate(p).size == 141065 and JSON.generate(p).size == 92596) and increases the time to serialize by 24%.
-Josh
--
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/544ABD92.7000309%40cpan.org.
For more options, visit https://groups.google.com/d/optout.
On Fri, Oct 24, 2014 at 1:58 PM, Joshua Hoblitt <jhob...@cpan.org> wrote:On 10/24/2014 11:49 AM, Wil Cooley wrote:
> On the other hand, I'm more likely to try to run grep on the master, which
> does not work well with minimized JSON (I'm clever enough that I can do it,
> but I would curse under my breath at having to do so). (Yes, I could
> probably query PuppetDB for these cases, but...)
If you haven't already tried it, jgrep (http://jgrep.org/) can be helpful.
And if you want a mind warping, but incredibly powerful, tool try out jq (http://stedolan.github.io/jq/). I used it to process a directory full of json files into a single file that contained an analysis.echo *.analysis | xargs cat | jq -s 'map(.[] | select(has("Puppet::Pops::Model::ResourceExpression")) | to_entries) | add | group_by(.key) | map({ "key": .[0] | .key, "value": map(.value) | add }) | from_entries as $expressions | { "expressions": $expressions, "expressions_per_resource": (($expressions | to_entries | map(.value) | add) / ($expressions | .["Puppet::Pops::Model::ResourceExpression"])), "most_common_expressions": $expressions | to_entries | sort_by(.value) | reverse | .[0:9] | map(.key) }'Had to echo and cat because there were too many files for the command line.