Octopus

Rails: How to split write/read query across master/slave database

橙三吉。 提交于 2019-11-28 12:15:31
My website has a very heavy read traffic. A lot heavier than write traffic. To improve the performance of my website I have thought of going with master/slave database configuration. The octupus gem seems to provide what I want, but since my app is huge I can't go though a millions of source code line to change the query distribution(sending read query to slave server and write query to master server). MySQL Proxy seems to be a great way to resolve this issue but since it is in alpha version I don't want to use it. So my question is what is the best way to split read/write queries across

Linux+Jenkins自动构建

末鹿安然 提交于 2019-11-26 21:22:44
Linux Job 在Jenkins中创建工程 构建前准备 自动部署脚本 需要把自动部署脚本上传到部署主机的响应目录,请仔细查看Jenkins 各个Job的配置。 portal部署脚本 存放在部署主机的目录:/data/deploy-shell 脚本名称:deploy-portal.sh iot-web部署脚本 存放在部署主机的目录:/data/deploy-shell 脚本名称:deploy-octopus.sh portal前端部署脚本 存放在部署主机的目录:/data/deploy-shell 脚本名称:deploy-web.sh 配置文件准备 portal 和iot-web自动构建支持使用部署主机的配置文件替换构建的配置文件,需要提前把文件文件准备好,存放到相应的目录,特殊情况需要修改部署脚本。 建议把配置文件分部署节点分别在svn 上配置好,然后直接拉取下来就可以了。 如portal 配置文件目录:与部署脚本有关 构建有一个参数控制是否使用部署主机配置文件替换构建的包的配置文件(iot 和portal的构建都配置有): 执行构建 前期准备工作做好后就可以自动构建了,一键发布(要发布多节点只要修改构建配置的分发主机项即可,可以支持多个节点同时部署)。 iot-web 直接执行linux-iot-test 自动构建 portal 需要先执行linux-iot-portal0