<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[cherry_sun的专栏]]></title><description><![CDATA[为了记忆我易逝的年华]]></description><link>https://blog.csdn.net/cherry_sun</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; cherry_sun]]></copyright><item><title><![CDATA[VMC源码的简单分析]]></title><link>https://blog.csdn.net/cherry_sun/article/details/8229542</link><guid>https://blog.csdn.net/cherry_sun/article/details/8229542</guid><author>cherry_sun</author><pubDate>Tue, 27 Nov 2012 12:40:07 +0800</pubDate><description><![CDATA[简单看了下VMC的源码，写一个类似提纲的东西。文章里面主要包括VMC各个代码块和他们实现的功能，通过一个命令的实现流程来分析。

VMC执行一条命令的流程：

1. bin/vmc

vmc是一个gem包，所以我们可以在自己的gem文件夹下面找到他们，执行vmc命令其实就是运行bin目录下的vmc文件。这个文件很简单，首先require lib/cli.rb，然后调用VMC::Cli:]]></description><category></category></item><item><title><![CDATA[Zookeeper开源客户端框架Curator简介]]></title><link>https://blog.csdn.net/cherry_sun/article/details/7916110</link><guid>https://blog.csdn.net/cherry_sun/article/details/7916110</guid><author>cherry_sun</author><pubDate>Tue, 28 Aug 2012 14:44:21 +0800</pubDate><description><![CDATA[From: http://macrochen.iteye.com/blog/1366136, 作者：macrochen

Curator是Netflix开源的一套ZooKeeper客户端框架. Netflix在使用ZooKeeper的过程中发现ZooKeeper自带的客户端太底层, 应用方在使用的时候需要自己处理很多事情, 于是在它的基础上包装了一下, 提供了一套更好用的客户端框架. Netf]]></description><category></category></item><item><title><![CDATA[svn 使用]]></title><link>https://blog.csdn.net/cherry_sun/article/details/7870031</link><guid>https://blog.csdn.net/cherry_sun/article/details/7870031</guid><author>cherry_sun</author><pubDate>Wed, 15 Aug 2012 17:08:50 +0800</pubDate><description><![CDATA[中文：http://www.php-oa.com/2008/03/12/svnminglingzailinuxxiadeshiyong.html
英文：http://www.yolinux.com/TUTORIALS/Subversion.html
需要在rep中建议个新的目录，然后直接使用这个目录，就使用



svn mkdir http://URL/directory]]></description><category></category></item><item><title><![CDATA[CloudFoundry的状态监控：varz]]></title><link>https://blog.csdn.net/cherry_sun/article/details/7868254</link><guid>https://blog.csdn.net/cherry_sun/article/details/7868254</guid><author>cherry_sun</author><pubDate>Wed, 15 Aug 2012 15:58:19 +0800</pubDate><description><![CDATA[CF的组建其实都有自己的状态监控，我们可以通过http查看他们的状态。这个就是varz。
比如我们在dea.yml配置文件中加入：
status:
  port: 2222
  user: user
  password: pw
然后http访问http://本机的ip:2222/varz，那个ip不能是localhost或者127.0.0.1，必须是对外的ip。然后就会有验证信息，输入上面]]></description><category></category></item><item><title><![CDATA[ruby 寻找类所在的文件]]></title><link>https://blog.csdn.net/cherry_sun/article/details/7850624</link><guid>https://blog.csdn.net/cherry_sun/article/details/7850624</guid><author>cherry_sun</author><pubDate>Fri, 10 Aug 2012 11:04:31 +0800</pubDate><description><![CDATA[ruby的require很强大，自己能找到各种依赖。然后有时候想找到某个类或者module所定义的文件。这个时候可以使用ruby1.9+的source_location方法。

require 'csv'

p CSV.new('string').method(:flock)
# => #

CSV.new('string').method(:flock).source_location
#]]></description><category></category></item><item><title><![CDATA[Cloud Foundry新版router源码分析]]></title><link>https://blog.csdn.net/cherry_sun/article/details/7835005</link><guid>https://blog.csdn.net/cherry_sun/article/details/7835005</guid><author>cherry_sun</author><pubDate>Mon, 06 Aug 2012 13:24:34 +0800</pubDate><description><![CDATA[调整格式太费力了，这里直接粘帖过来了，原文我写在自己的博客上了：http://lory-yang.com/2012/08/06/cloud_foundry_router/。

Cloud Foundry在几个月前改进了它的router，我们可以在新版cloudfoundry解密中看到它的介绍：


上个版本中。Router作为一个nginx脚本存在。所以的请求都必须经过Ruby代码，然后]]></description><category></category></item><item><title><![CDATA[cloud foundry 默认文件路径列表]]></title><link>https://blog.csdn.net/cherry_sun/article/details/7818470</link><guid>https://blog.csdn.net/cherry_sun/article/details/7818470</guid><author>cherry_sun</author><pubDate>Wed, 01 Aug 2012 14:51:27 +0800</pubDate><description><![CDATA[本文致力于列一份cloudfoundry默认的文件分布路径列表，方便大家查询。



vcap代码：/root/cloudfoundry/vcap
config文件：/root/cloudfoundry/.deployments/devbox/config
log：/root/cloudfoundry/.deployments/devbox/log
安装的ruby gems（可以去那]]></description><category></category></item><item><title><![CDATA[RVM初次见面]]></title><link>https://blog.csdn.net/cherry_sun/article/details/7789981</link><guid>https://blog.csdn.net/cherry_sun/article/details/7789981</guid><author>cherry_sun</author><pubDate>Thu, 26 Jul 2012 16:53:30 +0800</pubDate><description><![CDATA[今天发现在centOS安装1.9.*版本的ruby非常不方便，磊哥推荐用RVM，所以学习一下。
rvm主要可以负责ruby版本的安装和切换。就比如在centOS上面，ruby1.9版本安装不方便，如果使用rvm，就可以：
rvm install 1.9.3
rvm use 1.9.3
就可以成功切换了。当然RVM也支持更多的功能，比如在一个项目中，添加一个.rvmrc文件，就可以通过这个文]]></description><category></category></item><item><title><![CDATA[关于cloud_foundry自己的ruby, gem, bundle]]></title><link>https://blog.csdn.net/cherry_sun/article/details/7780472</link><guid>https://blog.csdn.net/cherry_sun/article/details/7780472</guid><author>cherry_sun</author><pubDate>Tue, 24 Jul 2012 15:58:43 +0800</pubDate><description><![CDATA[很早就大致了解cloud_foundry有自己的ruby，而不是使用系统提供的ruby。并且还有两个版本的ruby，今天终于遇到了，大致搞清楚了。
他们在哪里
首先我们要知道cloud_foundry把自己的ruby，gem装到哪里去了，这个可以去看config目录下面的deployment_info.conf文件。里面包含了一个ruby_bin_dir变量。这个路径就是ruby所在，在本机上]]></description><category></category></item><item><title><![CDATA[cloud controller和health_manager can't connection to server when starting]]></title><link>https://blog.csdn.net/cherry_sun/article/details/7779704</link><guid>https://blog.csdn.net/cherry_sun/article/details/7779704</guid><author>cherry_sun</author><pubDate>Tue, 24 Jul 2012 14:35:16 +0800</pubDate><description><![CDATA[电脑挪了个地方，发现cc和hm启动的时候直接无法连接server了，exception是在postgresql的类当中抛出来的。
经过磊哥的帮忙，发现问题在于postgersql的配置文件出现问题了。在/etc/postgresql/8.4/main/postgresql.conf文件最后，有一个监听ip，localhost似乎完全没有作用，然后因为换了地方，ip变动，所以原来的ip也不对了，因]]></description><category></category></item><item><title><![CDATA[cloud controller 源码分析（包括Ruby on Rails项目结构分析）]]></title><link>https://blog.csdn.net/cherry_sun/article/details/7750394</link><guid>https://blog.csdn.net/cherry_sun/article/details/7750394</guid><author>cherry_sun</author><pubDate>Mon, 16 Jul 2012 16:58:11 +0800</pubDate><description><![CDATA[本文记叙我作为一个完全不懂ror（ruby on rails）的开发者，了解ror以及cc所需的知识。全文包括了cloud controller的代码结构，MVC架构分析，最后有一个例子帮助分析。
目录结构
cc是一个ror项目，所以是按照ror的目录结构来安排的，如下所示。




app：是web应用的主程序目录，包含了mvc组件的代码config：runtime rules，r]]></description><category></category></item><item><title><![CDATA[ruby&python 从CGI 到 WSGI 到 Rack， 顺带Sinatra]]></title><link>https://blog.csdn.net/cherry_sun/article/details/7751452</link><guid>https://blog.csdn.net/cherry_sun/article/details/7751452</guid><author>cherry_sun</author><pubDate>Mon, 16 Jul 2012 16:57:41 +0800</pubDate><description><![CDATA[本篇只是学习篇，我贴了一些阅读的学习链接，然后加上一些comments。
CGI
http://zh.wikipedia.org/wiki/%E9%80%9A%E7%94%A8%E7%BD%91%E5%85%B3%E6%8E%A5%E5%8F%A3

http://www.hudong.com/wiki/CGI

CGI让人感觉就是一个很简单的远程脚本调用。他的概念就是：我在服务器端有]]></description><category></category></item><item><title><![CDATA[Ruby gem install Error(mkmf.rb can't find header files for ruby at...)]]></title><link>https://blog.csdn.net/cherry_sun/article/details/7743628</link><guid>https://blog.csdn.net/cherry_sun/article/details/7743628</guid><author>cherry_sun</author><pubDate>Fri, 13 Jul 2012 12:57:40 +0800</pubDate><description><![CDATA[安装gem的时候遇到这个错误：
ERROR:  Error installing bluecloth:
  ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
extconf.rb
mkmf.rb can't find h]]></description><category></category></item><item><title><![CDATA[Cloud Foundry vcap_dev start过程分析]]></title><link>https://blog.csdn.net/cherry_sun/article/details/7730008</link><guid>https://blog.csdn.net/cherry_sun/article/details/7730008</guid><author>cherry_sun</author><pubDate>Mon, 09 Jul 2012 17:20:48 +0800</pubDate><description><![CDATA[我们会通过bin/vcap_dev start命令来启动所有的cf组件，当然，也可以指定某些组件，比如bin/vcap_dev start health_manager。
下面大致研究下流程。
1. vcap_dev文件
首先是vcap_dev文件，前面主要处理了命令参数以及路径等问题。最后可以看到

exec_cmd("#{ruby_binary} #{vcap_launch} #{c]]></description><category></category></item><item><title><![CDATA[cloudfoundry dev setup 分析以及chef学习]]></title><link>https://blog.csdn.net/cherry_sun/article/details/7711913</link><guid>https://blog.csdn.net/cherry_sun/article/details/7711913</guid><author>cherry_sun</author><pubDate>Tue, 03 Jul 2012 17:03:52 +0800</pubDate><description><![CDATA[cf通过chef可以部署单节点实例。只需要按照http://support.cloudfoundry.com/entries/20407923-single-multi-node-vcap-deployment-using-dev-setup的介绍即可安装。本文就尝试着分析一下整个部署的流程，同时也对chef进行一些学习。
vcap_dev_setup
好了，首先从最外部的脚本进入，就是bin]]></description><category></category></item><item><title><![CDATA[CloudFoundry DEA运作源码分析]]></title><link>https://blog.csdn.net/cherry_sun/article/details/7696482</link><guid>https://blog.csdn.net/cherry_sun/article/details/7696482</guid><author>cherry_sun</author><pubDate>Wed, 27 Jun 2012 17:16:08 +0800</pubDate><description><![CDATA[这篇文章结构比较糟，我在http://lory-yang.com/2012/09/09/cloud-foundry-dea/中做了一些改进，可以去那里看看。另外我的博客整体搬迁到独立地址了：lory-yang.com，欢迎大家来访问

本文是对Cloud Foundry中的DEA组件源码的一些分析。有点流水帐的感觉，就事论事吧，同时因为本人能力有限，而且研究不深，错误在所难免。诸位就随便看看，]]></description><category></category></item><item><title><![CDATA[Openshift源码与运作方式初步分析]]></title><link>https://blog.csdn.net/cherry_sun/article/details/7601796</link><guid>https://blog.csdn.net/cherry_sun/article/details/7601796</guid><author>cherry_sun</author><pubDate>Fri, 25 May 2012 17:20:54 +0800</pubDate><description><![CDATA[大致看了一下源码，然后参考redhat给的liveCD，分析出一些Openshift的大致运作方式。
首先：openshift是通过打包成RPM来安装的，redhat上面的https://openshift.redhat.com/community/wiki/rebuild-openshift-origin-packages就是再说如何将源程序build成为RPM文件。RPM大致介绍可以看htt]]></description><category></category></item><item><title><![CDATA[OpenShift架构]]></title><link>https://blog.csdn.net/cherry_sun/article/details/7598721</link><guid>https://blog.csdn.net/cherry_sun/article/details/7598721</guid><author>cherry_sun</author><pubDate>Thu, 24 May 2012 16:39:17 +0800</pubDate><description><![CDATA[参考redHat的官方文章翻译而来：https://openshift.redhat.com/community/wiki/architecture-overview
OpenShift Origin
Openshift Origin是Openshift的开源版本，可以用来创建、部署以及管理云端的app。根据每个app使用到的服务的类型（数据库、语言环境），Oepnshift会为你提供一个文件]]></description><category></category></item><item><title><![CDATA[MongoDB提要二]]></title><link>https://blog.csdn.net/cherry_sun/article/details/7583761</link><guid>https://blog.csdn.net/cherry_sun/article/details/7583761</guid><author>cherry_sun</author><pubDate>Sat, 19 May 2012 23:50:30 +0800</pubDate><description><![CDATA[数组定位修改器：比如comments键对应的值为数组，那么可以使用comments.0.author 来定位一个数组元素，同时可以使用$符号来代替0，表示所有符合查询条件的第一个元素upsert，update的第三个参数，如果设为true，如果没有匹配的文档，会创建一个新的，然后执行updatesave也基本同上，只是参数是一个文档update第四个参数，表示修改所有满足的文档，默认为false，]]></description><category></category></item><item><title><![CDATA[MongoDB提要一]]></title><link>https://blog.csdn.net/cherry_sun/article/details/7583215</link><guid>https://blog.csdn.net/cherry_sun/article/details/7583215</guid><author>cherry_sun</author><pubDate>Sat, 19 May 2012 18:22:03 +0800</pubDate><description><![CDATA[恩，把MongoDB的要点记下来


面向文档：没有模式容易扩展：分割数据、负载平衡、MapReduce聚合使用JS语言交互，利用JS的强大功能。shell是个完整的js解释器不支持join和复杂的多行事务性能：使用自己的交互方式，用空间换取性能，尽可能将服务器端的处理逻辑推给客户端数据结构类似于JSON，添加了更多的数据类型由于JS数据类型的限制，所有通过Shell覆盖的文档数字都会变成双]]></description><category></category></item></channel></rss>