上一页 1 ··· 112 113 114 115 116 117 118 119 120 ··· 133 下一页

2017年10月5日

fn project 试用之后的几个问题的解答

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

posted @ 2017-10-05 18:36 荣锋亮 阅读(330) 评论(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 荣锋亮 阅读(290) 评论(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 荣锋亮 阅读(1040) 评论(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 荣锋亮 阅读(208) 评论(0) 推荐(0)

fn project AWS Lambda 格式 functions

摘要: Creating Lambda Functions Creating Lambda functions is not much different than using regular functions, just use the lambda-node-4 runtime. fn init -- 阅读全文

posted @ 2017-10-05 18:04 荣锋亮 阅读(258) 评论(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 荣锋亮 阅读(273) 评论(0) 推荐(0)

fn project Function files 说明

摘要: 主要是文件 func.yaml func.json 详细说明如下: An example of a function file: name: fnproject/hello version: 0.0.1 type: sync memory: 128 config: key: value key2: 阅读全文

posted @ 2017-10-05 18:00 荣锋亮 阅读(347) 评论(0) 推荐(0)

fn project hot functions 说明

摘要: 1. 简单介绍 所谓 hot functions 实际上就是长时间运行的functions ,简单理解类似后台任务 所谓 hot functions 实际上就是长时间运行的functions ,简单理解类似后台任务 所谓 hot functions 实际上就是长时间运行的functions ,简单理 阅读全文

posted @ 2017-10-05 17:53 荣锋亮 阅读(599) 评论(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 荣锋亮 阅读(679) 评论(0) 推荐(0)

fn project 私有镜像发布

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

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

2017年10月4日

fn project Message Queues 配置

摘要: Message Queues A message queue is used to coordinate asynchronous function calls that run through Fn. We currently support the following message queue 阅读全文

posted @ 2017-10-04 22:56 荣锋亮 阅读(267) 评论(0) 推荐(0)

fn project 数据库配置

摘要: Databases We currently support the following databases and they are passed in via the DB_URL environment variable. For example: docker run -e "DB_URL= 阅读全文

posted @ 2017-10-04 22:54 荣锋亮 阅读(363) 评论(0) 推荐(0)

fn project 运行时配置选项

摘要: Env VariablesDescriptionDefault values DB_URL The database URL to use in URL format. SeeDatabases for more information. sqlite3:///app/data/fn.db MQ_U 阅读全文

posted @ 2017-10-04 22:34 荣锋亮 阅读(276) 评论(0) 推荐(0)

fn project 试用之后的几个问题

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

posted @ 2017-10-04 21:43 荣锋亮 阅读(231) 评论(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 荣锋亮 阅读(953) 评论(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 荣锋亮 阅读(456) 评论(0) 推荐(0)

2017年10月3日

CoreDNS kubernetes 安装使用

摘要: kubernetes 以前是skydns 后面变为 dnsmasq,coredns 也是一个不错的工具 1. 准备环境 安装 kubernetes 配置 kubelet 的cluster-dns 2. 下载coredns kubernetes 模板 地址:https://github.com/cor 阅读全文

posted @ 2017-10-03 16:35 荣锋亮 阅读(751) 评论(0) 推荐(0)

2017年10月1日

debezium 数据变更工具使用

摘要: 1. 作用 简单概述就是CDC(change data capture),实时数据分析领域用的比较多 2. 简单使用(基于官网的docker 说明) 备注: 测试没有使用守护进程模式为了方便测试 a. zookeeper docker run -it --rm --name zookeeper -p 阅读全文

posted @ 2017-10-01 10:45 荣锋亮 阅读(5567) 评论(10) 推荐(0)

2017年9月26日

envoy  功能介绍

摘要: L3/L4 filter architecture: At its core, Envoy is an L3/L4 network proxy. A pluggable filter chain mechanism allows filters to be written to perform di 阅读全文

posted @ 2017-09-26 12:21 荣锋亮 阅读(875) 评论(0) 推荐(0)

envoy 测试试用

摘要: 备注: 为了简单测试使用的是docker 镜像进行的测试 1. Dockerfile FROM lyft/envoy:latest RUN apt-get update COPY envoy.json /etc/envoy.json CMD /usr/local/bin/envoy -c /etc/ 阅读全文

posted @ 2017-09-26 10:37 荣锋亮 阅读(869) 评论(0) 推荐(0)

2017年9月20日

k8s api server ha 连接配置问题

摘要: 常见的lb 负载有硬件的f5 big-ip ,同时对于互联网公司大家常用的是nginx haproxy 了解k8s 集群高可用的都知道 api server 是无状态的(etcd 解决了),但是controller-manager scheduler 组件必须在集群中只能保证有一份副本,保证一个副本 阅读全文

posted @ 2017-09-20 23:23 荣锋亮 阅读(460) 评论(0) 推荐(0)

2017年9月7日

gitlab Failed to register this runner. Perhaps you are having network problems runner 注册失败问题解决

摘要: 1. 低版本安装地址 https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/v1.11.2/index.html 2. 使用 yum 安装进行配置 wget https://gitlab-ci-multi-runner-downloads 阅读全文

posted @ 2017-09-07 17:38 荣锋亮 阅读(1853) 评论(0) 推荐(0)

2017年9月6日

gitlab pipelines 使用

摘要: 1. 安装runner # For Debian/Ubuntu curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.deb.sh | sudo bash # For 阅读全文

posted @ 2017-09-06 19:41 荣锋亮 阅读(1388) 评论(0) 推荐(0)

2017年9月4日

centos 7 bbr 安装

摘要: 1. 准备 升级内核需要4.9 以及以上 2. yum 内核升级 a. 添加 ELRepo 源 GPG key rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org rpm --import https://www.elrepo.org 阅读全文

posted @ 2017-09-04 13:47 荣锋亮 阅读(408) 评论(0) 推荐(0)

2017年9月1日

kafka ksql && docker 安装试用

摘要: 备注: 使用docker 模式进行安装 1. 准备docker 环境(需要docker-compose) docker 的安装不需要进行多描述了,直接yum 或者源码编译也可以 2. 安装 kafa 以及ksql git clone git@github.com:confluentinc/ksql. 阅读全文

posted @ 2017-09-01 16:06 荣锋亮 阅读(704) 评论(0) 推荐(0)

2017年8月19日

netflix vector 系统性能监控安装使用

摘要: 说明本次安装使用docker 1. vector 安装 docker run -d --name vector -p 80:80 netflixoss/vector:latest 2. 依赖的pcp 安装 yum install -y pcp-webapi pcp 3. 服务启动 a. vector 阅读全文

posted @ 2017-08-19 22:40 荣锋亮 阅读(553) 评论(0) 推荐(0)

2017年8月17日

keycloak && docker安装 &&spring boot 集成使用

摘要: 1. 基础依赖 a. docker mysql b. dokcer keycloak-mysql a. docker mysql b. dokcer keycloak-mysql 2. 安装 mysql (注意实际使用最好使用本地数据卷) docker run --name mysql -e MYS 阅读全文

posted @ 2017-08-17 10:43 荣锋亮 阅读(2645) 评论(0) 推荐(0)

gogs docker 安装

摘要: 1. gogs 镜像 docker pull gogs/gogs docker pull gogs/gogs 2. mysql docker mysql docker mysql 3. 本地数据卷配置 mkdir gogs && mkdir mysql 4. 启动 ## mysql docker r 阅读全文

posted @ 2017-08-17 08:05 荣锋亮 阅读(397) 评论(0) 推荐(0)

2017年8月14日

alpine docker 镜像 时区问题

摘要: 1. 时区处理 RUN apk update && apk add curl bash tree tzdata \ && cp -r -f /usr/share/zoneinfo/Hongkong /etc/localtime \ RUN apk update && apk add curl bas 阅读全文

posted @ 2017-08-14 15:49 荣锋亮 阅读(715) 评论(0) 推荐(0)

nginx 流量拷贝模块 ngx_http_mirror_module 安装试用

摘要: 1. 下载源码编译 https://nginx.org/download/nginx-1.13.4.tar.gz 2. 下载依赖模块包 https://nginx.org/download/nginx-1.13.4.tar.gz 2. 下载依赖模块包 这里直接yum 安装 yum -y instal 阅读全文

posted @ 2017-08-14 09:47 荣锋亮 阅读(1851) 评论(0) 推荐(0)

2017年8月8日

ulimit  设置

摘要: 1、 /etc/security/limit.conf * soft nofile 65535 * hard nofile 65535 * soft nproc 65535 * hard nproc 65535 * soft nofile 65535 * hard nofile 65535 * so 阅读全文

posted @ 2017-08-08 11:20 荣锋亮 阅读(505) 评论(0) 推荐(0)

nginx time_wait 较多优化

摘要: 1. 查看命令 netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}' 结果 ESTABLISHED 22 FIN_WAIT1 2 FIN_WAIT2 11 TIME_WAIT 189 名词解释 netstat -n 阅读全文

posted @ 2017-08-08 11:09 荣锋亮 阅读(589) 评论(0) 推荐(0)

2017年8月5日

java 执行JavaScript 以及容器化的问题

摘要: 1. 可选方案 a. jdk 6 开始内置的Rhino 引擎 b. jdk8 替换的nashorn (性能高,对于ECMA 支持更好) c. java 版的nodejs vertx.io 2. 实践操作 public static void main(String[] args) { ScriptE 阅读全文

posted @ 2017-08-05 13:30 荣锋亮 阅读(855) 评论(0) 推荐(0)

2017年7月31日

使用 lego生成 Let's Encrypt 证书

摘要: 1. 工具 https://github.com/xenolf/lego 2. 使用 命令生成新的 lego --email="foo@bar.com" --domains="example.com" run 请求重新生成 lego --email="foo@bar.com" --domains=" 阅读全文

posted @ 2017-07-31 19:54 荣锋亮 阅读(1500) 评论(0) 推荐(0)

2017年7月27日

piwik docker 安装

摘要: 备注: 生产环境使用docker-compose 1. 安装docker && docker-compose 此处略过 2. 下载docker-compose 的文件 https://github.com/indiehosters/piwik 操作如下: git clone https://gith 阅读全文

posted @ 2017-07-27 17:47 荣锋亮 阅读(968) 评论(0) 推荐(0)

2017年7月19日

maven-assembly-plugin 打包简单案例

摘要: 简单项目 1. maven netty lomback 包含项目依赖 <dependencies> <dependency> <groupId>io.netty</groupId> <artifactId>netty-all</artifactId> <version>4.1.9.Final</ve 阅读全文

posted @ 2017-07-19 15:26 荣锋亮 阅读(1998) 评论(0) 推荐(0)

2017年7月17日

REX-Ray 了解

摘要: REX-Ray 是一个 EMC {code} 团队领导的开源项目,为 Docker、Mesos 及其他容器运行环境提供持续的存储访问。其设计旨在囊括通用存储、虚拟化和云平台,提供高级的存储功能。 当前支持的系统: Ubuntu Debian RedHat CentOS CoreOS OSX REX- 阅读全文

posted @ 2017-07-17 21:42 荣锋亮 阅读(926) 评论(0) 推荐(0)

2017年7月16日

sqlserver docker 安装部署试用

摘要: 1. 镜像 docker pull exoplatform/sqlserver 2. 镜像参数 docker pull exoplatform/sqlserver docker run -d -e SA_PASSWORD=<passord> -e SQLSERVER_DATABASE=<db nam 阅读全文

posted @ 2017-07-16 22:29 荣锋亮 阅读(3475) 评论(0) 推荐(1)

Liquibase 了解

摘要: Liquibase 是一个用于跟踪、管理和应用数据库变化的开源的数据库重构工具。它将所有数据库的变化(包括结构和数据)都保存在 XML 文件中,便于版本控制。 Liquibase 具备如下特性: 不依赖于特定的数据库,目前支持包括 Oracle/Sql Server/DB2/MySql/Sybase 阅读全文

posted @ 2017-07-16 15:02 荣锋亮 阅读(538) 评论(0) 推荐(0)

2017年7月15日

web 调试工具docker的安装使用

摘要: 1. weinre 工具 docker run -d -p 8080:8080 beevelop/weinre 2. vorlonjs(不支持https) docker run --name vorlonjs -p 80:1337 vorlonjs/dashboard:0.3.0 3. vorlon 阅读全文

posted @ 2017-07-15 11:33 荣锋亮 阅读(502) 评论(0) 推荐(0)

上一页 1 ··· 112 113 114 115 116 117 118 119 120 ··· 133 下一页

导航