<p>CF has an enormous amount of go code (Diego for example) that is all open source. Yet, I've never pulled in a library from CF.</p>
<p>I expect must of these large projects solve interesting problems and yield interesting abstractions. Does CF share any of this with the OSS community?</p>
<p>I'm sure I've simply missed them, but has anyone found a useful library from GitHub.com/CloudFoundry?</p>
<hr/>**评论:**<br/><br/>tmuxxxer: <pre><p>A library I've kept at arms length is <a href="https://github.com/cloudfoundry/lager" rel="nofollow">https://github.com/cloudfoundry/lager</a></p>
<p>It's a logger library. Instead of printing your stderr/stdout in a human readable format (which you get with the standard library log package), lager prints the output in JSON. I have never seen the benefit of my system printing log files that way. In fact it often makes troubleshooting slower. </p>
<p>Not the best example, but a cf library all the same.</p></pre>rossmohax: <pre><p>Structured logging is much easier to index and analyse using ELK stack</p></pre>tmuxxxer: <pre><p>That's logstash's job though.</p>
<p>Why turn the logs into a human readable catastrophe when there are tools that can read normal logs?</p></pre>StonyPriapus: <pre><p>As someone who's been the ELK guy for cloud foundry, it's a pretty awesome feature. Very easy to parse, do aggregations and statistics.</p>
<p>A while later I did the same with openshift and docker, it took literally over 30 times more lines to do the same and it wasn't equally reliable</p></pre>SeerUD: <pre><p>You'd usually send that data to a log aggregator, which would then let you do more advanced things like visualisations of your logs, or presenting the log information in a more readable / searchable format.</p></pre>fthedill: <pre><p><a href="https://github.com/cloudfoundry/clock" rel="nofollow">https://github.com/cloudfoundry/clock</a></p>
<p>Helps inject time.</p></pre>ragefacesmirk: <pre><p>The loggregator project (logs for cloud foundry) has been breaking a few projects out:</p>
<p><a href="https://code.cloudfoundry.org/go-diodes" rel="nofollow">https://code.cloudfoundry.org/go-diodes</a> - High throughput ring buffer</p>
<p><a href="https://code.cloudfoundry.org/go-pubsub" rel="nofollow">https://code.cloudfoundry.org/go-pubsub</a> - Tree based pubsub for advanced routing</p>
<p><a href="https://code.cloudfoundry.org/go-batching" rel="nofollow">https://code.cloudfoundry.org/go-batching</a> - To create batches of objects before emitting them</p>
<p><a href="https://code.cloudfoundry.org/go-envstruct" rel="nofollow">https://code.cloudfoundry.org/go-envstruct</a> - Unmarshal environment variables into a struct.</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
0 回复
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传