nameserver
---
deployments:
- apiVersion: "apps/v1beta1"
kind: "Deployment"
metadata:
annotations:
nameserver: "false"
labels:
system_serviceUnit: "{{.nameserver}}"
system_workload: "{{.nameserver}}"
ownerName: "{{.user}}"
system_ingress: "{{.nameserver}}"
system_namespace: "{{.namespaces}}"
system_cluster: "{{.paascluster}}"
name: "{{.nameserver}}"
namespace: "{{.namespaces}}"
spec:
replicas: 1
template:
metadata:
labels:
system_serviceUnit: "{{.nameserver}}"
system_workload: "{{.nameserver}}"
ownerName: "{{.user}}"
system_ingress: "{{.nameserver}}"
system_namespace: "{{.namespaces}}"
system_cluster: "{{.paascluster}}"
spec:
containers:
- env:
- name: "nameserver_profile"
value: "{{.nameserver}}"
- name: "nameserver_hostname1"
value: "nameserver1"
- name: "nameserver_hostname2"
value: "nameserver2"
- name: "nameserver_hostname3"
value: "nameserver3"
- name: "JAVA_OPTS"
value: "-Xms3g -Xmx3g -XX:+PrintFlagsFinal -XX:+UnlockDiagnosticVMOptions\
\ -XX:NewRatio=2 -XX:ParallelGCThreads=2 -XX:CICompilerCount=2 -XX:+UseParNewGC\
\ -XX:+UseConcMarkSweepGC -XX:InitialCodeCacheSize=128m -XX:ReservedCodeCacheSize=256m\
\ -XX:MinMetaspaceFreeRatio=20 -XX:MaxMetaspaceFreeRatio=80 -XX:MetaspaceSize=512m\
\ -XX:MaxMetaspaceSize=768m -XX:CompressedClassSpaceSize=256m -XX:MaxDirectMemorySize=256M\
\ -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps\
\ -Xloggc:/usr/local/gc.txt -XX:+PrintGCApplicationStoppedTime -XX:+PrintGCApplicationConcurrentTime\
\ -XX:+PrintSafepointStatistics -XX:PrintSafepointStatisticsCount=1\
\ -XX:+LogVMOutput -XX:LogFile=/usr/local/vm.txt -XX:-UseBiasedLocking\
\ -XX:+LogCompilation -XX:+SafepointTimeout -XX:SafepointTimeoutDelay=500"
- name: "shtelpaas_app_ip"
valueFrom:
fieldRef:
fieldPath: "status.podIP"
image: "hub.paas/base/nameserver:1.3"
imagePullPolicy: "Always"
livenessProbe:
httpGet:
path: "health"
port: 8761
initialDelaySeconds: 120
periodSeconds: 60
timeoutSeconds: 10
name: "nameserver"
resources:
limits:
memory: "4096.00Mi"
cpu: "4000.00m"
requests:
memory: "512.00Mi"
cpu: "500.00m"
volumeMounts:
- mountPath: "/usr/local/nameserver-service/log"
name: "app-log-nameserver"
readOnly: false
- env:
- name: "CE_CLUSTER_NAME"
value: "{{.paascluster}}"
- name: "CE_NAMESPACE_NAME"
value: "{{.namespaces}}"
- name: "CE_WORKLOAD_NAME"
value: "{{.nameserver}}"
- name: "CE_SERVICE_NAME"
value: "{{.nameserver}}"
- name: "CE_LOG_PATH"
value: "/usr/local/nameserver-service/log/*.log"
- name: "CE_LOG_SERVER_ADDR"
value: "10.145.216.133:6230,10.145.216.134:6230,10.145.216.135:6230"
- name: "DISABLE_DATE_MULTILINE"
value: "1"
image: "hub.paas/paas/filebeat:0.6"
imagePullPolicy: "Always"
name: "file-beat"
resources:
limits:
memory: "200Mi"
cpu: "0.05"
requests:
memory: "40Mi"
cpu: "0.01"
volumeMounts:
- mountPath: "/usr/local/nameserver-service/log"
name: "app-log-nameserver"
readOnly: false
volumes:
- name: "app-log-nameserver"
workLoadParam:
id: 5296
kind: "WorkLoad"
name: "nameserver1"
clusterNameSpace: "ie-eop-sys"
physicsClusterName: "{{.paascluster}}
serviceMonitors:
nameserver1: false
serviceUnitParams:
- name: "{{.nameserver}}"
services:
- apiVersion: "v1"
kind: "Service"
metadata:
labels:
system_serviceUnit: "{{.nameserver}}"
system_workload: "{{.nameserver}}"
system_ingress: "{{.nameserver}}"
system_cluster: "{{.paascluster}}"
ownerName: "{{.user}}"
system_namespace: "{{.namespaces}}"
name: "{{.nameserver}}"
spec:
ports:
- name: "{{.nameserver}}"
port: 8761
protocol: "TCP"
targetPort: 8761
selector:
system_serviceUnit: "{{.nameserver}}"
system_workload: "{{.nameserver}}"
system_ingress: "{{.nameserver}}"
system_cluster: "{{.paascluster}}"
ownerName: "{{.user}}"
system_namespace: "{{.namespaces}}"
ingresses:
- apiVersion: "extensions/v1beta1"
kind: "Ingress"
metadata:
labels:
system_serviceUnit: "{{.nameserver}}"
system_workload: "{{.nameserver}}"
system_ingress: "{{.nameserver}}"
system_cluster: "{{.paascluster}}"
ownerName: "{{.user}}"
system_namespace: "{{.namespaces}}"
name: "{{.nameserver}}"
spec:
rules:
- host: "{{.nameserver}}.{{.enging}}.{{.env}}.com"
http:
paths:
- backend:
serviceName: "{{.nameserver}}"
servicePort: 8761
path: "/"
nameserver的更多相关文章
- RocketMQ源码 — 二、 NameServer
NameServer 作用:Producer和Consumer获取Broker的地址 目的:解耦Broker和Producer.Consumer 原理:使用netty作为通信工具,监听指定端口,如果是 ...
- MQ NameServer模块划分
上图是之前讨论确定的系统架构(后续内容会按照这个架构来叙述),其中: NameServer做Broker的服务发现,即客户端可以通过NameServer拿到Broker的信息 Broker汇报数据到N ...
- Centos6.9下RocketMQ3.4.6高可用集群部署记录(双主双从+Nameserver+Console)
之前的文章已对RocketMQ做了详细介绍,这里就不再赘述了,下面是本人在测试和生产环境下RocketMQ3.4.6高可用集群的部署手册,在此分享下: 1) 基础环境 ip地址 主机名 角色 192. ...
- RocketMQ NameServer
NameServer 路由管理,服务注册,服务发现.(类比为soa框架中的zookeeper) 一.路由管理 1.路由注册,由 Broker 向 NameServer 发送心跳,NameServer ...
- Linux-HA实战(3)— 基于Pacemaker搭建TFS Nameserver HA
上篇文章简单介绍了下基于Heartbeat的虚拟IP配置,个人觉得简单易用已经能够应付大部分场景了.但是既然花时间研究HA,如果仅限于一个虚拟IP飘来飘去未免有点糊弄任务了,因此这篇文章打算介绍下基于 ...
- Linux-HA实战(2)— TFS Nameserver HA之虚拟IP
对TFS的Nameserver做机器级别的HA通过虚拟IP机制就可以了,只需要一个Heartbeat就可以搞定,下面简单说下步骤. 操作系统:CentOS 6.4 x86_64 Heartbeat: ...
- 修改RocketMQ的NameServer端口
---问题--- 有同事提出各个问题:如何修改RocketMQ的NameServer端口号?(默认:9876) ---结论--- 调查并验证之后,结论及过程如下: 验证版本:rocketmq-all- ...
- RocketMQ之NameServer学习笔记
org.apache.rocketmq.namesrv.NamesrvController NameserController,NameServer的核心控制类. 1.1 NamesrvConfig ...
- RocketMQ读书笔记4——NameServer(MQ的协调者)
[NameServer简述] 对于一个消息队列集群来说,系统由很多机器组成,每个机器的角色.IP地址都不相同,而且这些信息是变动的(如在某些情况下,会有新的Producer或Consumer加入). ...
- 解决debian 9 重启nameserver失效问题
目录 解决debian 9 重启nameserver失效问题 安装resolvconf 编辑文件 测试 解决debian 9 重启nameserver失效问题 刚安装完debian9,用过之后会发现/ ...
随机推荐
- 【C++札记】类的继承
继承 面向对象的设计思想,类对数据做了封装,并可以加入访问权限,类的继承是面向对象思想的精髓.类的继承可以让新类从以有的类中获得已有的特征.原有类称为基类或父类,新类称为派生类或子类. 语法: cla ...
- Django组件之auth
一.什么是Auth模块 Auth模块是Django自带的用户认证模块,默认使用 auth_user 表来存储用户数据. 二.使用方法 1.创建超级用户 python3 manage.py create ...
- API总结
1. 什么是Webservice WebService就是一个应用程序向外界暴露出一个能通过Web进行调用的API,也就是说能用编程的方法通过 Web 来调用这个应用程序.我们把调用这个WebServ ...
- L2R 三:常用工具包介绍之 XGBoost与LightGBM
L2R最常用的包就是XGBoost 和LightGBM,xgboost因为其性能及快速处理能力,在机器学习比赛中成为常用的开源工具包, 2016年微软开源了旗下的lightgbm(插句题外话:微软的人 ...
- Dubbo快速入门 五
5. Dubbo注解版 之前在dubbo配置文件显式编写内容提供者和消费者,官方还提供了了一种注解方式,接下来改造项目 1.服务提供方 dubbo配置文件 将之前手动申明注释掉,添加<dubbo ...
- jwt 0.9.0(三)jwt客户端存储状态可行性分析,及Java代码案例
Jwt客户端存储状态可行性分析 1.前端首次访问后台,后台生成token,放在http header的Authorization里(官网推荐,可解决跨域cookie跨域问题),并且Authorizat ...
- Unity的学习笔记(鼠标移动控制视角移动)
using UnityEngine; public class MouseLook : MonoBehaviour { , MouseX = , MouseY = } //定义一个枚举,移动xy,或者 ...
- 3.MVC基础-Code First 入门完整实例
1.添加一个EF的上下文类 EFDbContext public class EFDbContext:DbContext { public EFDbContext() : base("EF ...
- FireWolf OS X PE
FireWolf OS X PE FireWolf OS X PE 9 使用手册 https://pe.firewolf.app/manual/ https://pe.firewolf.app/m ...
- 【转载】C#使用Math.Ceiling方法对计算结果向上取整操作
在C#的数值运算中,有时候需要对计算结果进行向上取整操作,支持设定结算结果的有效位数,Math.Ceiling方法是C#中专门用来对数值进行向上取整的方法,此方法和Math.Round方法.Math. ...