CloudFoundry and go libraries

agolangf · · 392 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>CF has an enormous amount of go code (Diego for example) that is all open source. Yet, I&#39;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&#39;m sure I&#39;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&#39;ve kept at arms length is <a href="https://github.com/cloudfoundry/lager" rel="nofollow">https://github.com/cloudfoundry/lager</a></p> <p>It&#39;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&#39;s logstash&#39;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&#39;s been the ELK guy for cloud foundry, it&#39;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&#39;t equally reliable</p></pre>SeerUD: <pre><p>You&#39;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

392 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传