随笔分类 -  服务器

memsql 基本安装试用
摘要:备注:使用docker 进行安装 1. 基本准备 a. 环境检查(必须,不然会有服务启动异常的问题) docker run --rm memsql/quickstart check-system b. 启动 docker run -d -p 3306:3306 -p 9000:9000 --name 阅读全文

posted @ 2018-04-05 19:27 荣锋亮 阅读(4466) 评论(0) 推荐(0) 编辑

nomad 安装(单机)试用
摘要:备注: nomad 可以实现基础设施的调度管理,类似kubernetes ,但是在多云以及多平台支持上比较好, 还是hashicrop 工具出品的,很不错,同时本地测试因为使用默认的job需要安装docker 1. 下载 备注: nomad 可以实现基础设施的调度管理,类似kubernetes ,但 阅读全文

posted @ 2017-11-30 15:52 荣锋亮 阅读(1361) 评论(0) 推荐(0) 编辑

sysbench fileio 压力测试
摘要:备注: 使用的是yum 安装 1. 安装 yum install -y sysbench 2. 命令 fileio options: --file-num=N number of files to create [128] --file-block-size=N block size to use 阅读全文

posted @ 2017-11-24 14:13 荣锋亮 阅读(307) 评论(0) 推荐(0) 编辑

sysbench 1.0.9 mysql 压测工具安装使用
摘要:备注: 安装比较简单,可以使用源码或者使用yum 进行安装,本次测试使用yum 注意1.0 之后版本与老版本改动比较大,好多地方都有修改,本次测试使用 的mysql 使用docker 安装的。 1. 安装 yum install sysbench 2. 命令解析 --mysql-host IP -- 阅读全文

posted @ 2017-11-24 11:00 荣锋亮 阅读(843) 评论(0) 推荐(0) 编辑

systemtap 安装试用
摘要:1. 安装 yum install -y systemtap systemtap-runtime 2. 环境准备 a. 自动安装依赖 stap-prep b. 手动安装依赖 kernel-debuginfo kernel-debuginfo-common kernel-devel 简单的方式使用yu 阅读全文

posted @ 2017-11-23 17:34 荣锋亮 阅读(254) 评论(0) 推荐(0) 编辑

ansible playbook 使用
摘要:ansible playbook 格式是json yaml 1. 执行方法 ansible-playbook deply.yml 2. playbook 格式 关键字 hosts 主机ip 主机组名 remote_user 用户身份 vars 变量 tasks 定义顺序执行的action 每个act 阅读全文

posted @ 2017-11-12 14:28 荣锋亮 阅读(202) 评论(0) 推荐(0) 编辑

ansible安装基本使用
摘要:备注使用yum (centos7) 1. 安装 yum install -y ansible 2. 免密登录(ssh,最好使用dns 解析) // create ssh key ssh-keygen // copy ssh key to remote host ssh-copy-id -i /roo 阅读全文

posted @ 2017-11-12 14:28 荣锋亮 阅读(224) 评论(0) 推荐(0) 编辑

goreplay(gor) golang 流量拷贝工具试用
摘要:1. 项目地址 https://github.com/buger/goreplay 2. 安装 wget https://github.com/buger/goreplay/releases/download/v0.16.1/gor_0.16.1_x64.tar.gz tar xvf gor_0.1 阅读全文

posted @ 2017-11-07 14:30 荣锋亮 阅读(3359) 评论(0) 推荐(0) 编辑

terraform 阿里云基本使用
摘要:1. 预备环境 安装了terraform 的软件的操作系统(windows linux mac 均可) 具有阿里云账户的 access_key secret_key 2. 配置 // terraform 的配置相对比较随意,但是有几个必须注意的,文件后缀 tf 文件名不需要进行特殊说明 // 以下为 阅读全文

posted @ 2017-11-01 19:51 荣锋亮 阅读(8150) 评论(0) 推荐(0) 编辑

add-apt-repository 添加
摘要:add-apt-repository 添加 需要安装的软件包 apt-get install python-software-properties 除此之外还要安装 software-properties-common apt-get install software-properties-comm 阅读全文

posted @ 2017-10-19 14:58 荣锋亮 阅读(3085) 评论(0) 推荐(0) 编辑

openfaas 私有镜像配置
摘要:备注: 此项目是使用nodejs 生成唯一id 的\ 预备环境 docker harbor faas-cli openfaas k8s 1. 项目初始化 faas-cli new node --lang node // 修改node.yml 镜像名称、gateway 地址 修改之后如下: provi 阅读全文

posted @ 2017-10-10 13:40 荣锋亮 阅读(1190) 评论(0) 推荐(0) 编辑

fn project 试用之后的几个问题的解答
摘要:今天试用fnproject 之后自己有些思考,后面继续解决 1. 目前测试是强依赖 dockerhub 的,实际可能不是很方便 2. 如何与k8s 、mesos、docker swarm 集成 3. security 如何做 4. 现有基础设施改造 5. 监控、服务追踪、日志的处理 6. 持续集成如 阅读全文

posted @ 2017-10-05 18:36 荣锋亮 阅读(315) 评论(0) 推荐(0) 编辑

fn project 扩展
摘要:目前支持的扩展方式 Listeners - listen to API events such as a route getting updated and react accordingly. Middleware - a chain of middleware is executed befor 阅读全文

posted @ 2017-10-05 18:16 荣锋亮 阅读(280) 评论(0) 推荐(0) 编辑

fn project 生产环境使用
摘要:此为官方的参考说明 Running Fn in Production The QuickStart guide is intended to quickly get started and kick the tires. To run in production and be ready to sc 阅读全文

posted @ 2017-10-05 18:12 荣锋亮 阅读(1014) 评论(0) 推荐(0) 编辑

fn project 对象模型
摘要:Applications At the root of everything are applications. In fn, an application is essentially a grouping of functions with path mappings (routes) to e 阅读全文

posted @ 2017-10-05 18:09 荣锋亮 阅读(198) 评论(0) 推荐(0) 编辑

fn project 打包Function
摘要:Option 1 (recommended): Use the fn cli tool We recommend using the fn cli tool which will handle all of this for you. But if you'd like to dig in and 阅读全文

posted @ 2017-10-05 18:01 荣锋亮 阅读(265) 评论(0) 推荐(0) 编辑

fn project k8s 集成
摘要:具体部署还是比较简单的,以下为官方参考,只是有一个service type 为 loadBlancer 实际使用需要修改为NodePort Prerequisite 1: working Kubernetes cluster (v1.7+), and a locally configured kub 阅读全文

posted @ 2017-10-05 11:23 荣锋亮 阅读(659) 评论(0) 推荐(0) 编辑

fn project 私有镜像发布
摘要:1. 说明 fnproject 默认的docker registry 是 dockerhub 对于企业应用还是不太方便的 还好系统系统了配置参数方便我们进行配置,与开源harbor 进行集成 2. 使用 a. harbor 安装 此处略过,安装比较简单,参考github 文档即可 b. 配置说明 1 阅读全文

posted @ 2017-10-05 11:03 荣锋亮 阅读(502) 评论(0) 推荐(0) 编辑

fn project faas 框架试用
摘要:1. 预备环境 2. 安装 curl -LSs https://raw.githubusercontent.com/fnproject/cli/master/install | sh 3. 简单例子 a. 启动服务 fn start b. go 项目例子 func.go package main i 阅读全文

posted @ 2017-10-04 21:12 荣锋亮 阅读(928) 评论(0) 推荐(0) 编辑

oracle fn project 开源faas 框架
摘要:1. 介绍 Fn is an event-driven, open source, functions-as-a-service compute platform that you can run anywhere. Some of it's key features: Write once Any 阅读全文

posted @ 2017-10-04 20:37 荣锋亮 阅读(438) 评论(0) 推荐(0) 编辑

导航