Xingpeng Li

Results 4 issues of Xingpeng Li

### preview service服务 #### 环境 语言:Java 8 框架:Spring Boot 2.6.7 依赖如下: ``` org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-test test io.mosn.layotto layotto-sdk-springboot 1.1.0 ``` #### 接口 preview service控制层(controller)开放File API和State API接口: File API接口:调用layotto ali...

stale
wip

1.在JDBC模块中复制DefaultCommonConfigBean、MetadataConfigBean、MetaElectorConfigBean,然后在RaftConfiguration配置类中注入三者。 2.在RaftConfiguration配置类中注入RheaKVStore(通过 @ConditionalOnMissingBean判断用户是否注入RheaKVStore,如果没有自动注入,启动我定义好的RheaKVStore) 3.新增DefaultConfigs(DB_PATH,RAFT_DATA_PATH,ADDRESS,CLUSTER_NAME) 4.新增LeaderLockDomain(lockName(分布式锁名称),dataCenter(集群名称),owner(节点名称),leaderInfo(节点信息),gmtModified(修改时间),duration(过期时间)) 5.新增AppRevisionDomain(dataCenter(集群节点 ,revision(revision),appName(应用名),clientVersion(客户端版本),baseParams(基础参数),serviceParams(服务参数),gmtModify(修改时间)) 6.在MetaRaftLeaderElector中的JRheaKV存储("DISTRIBUTE-LOCk",Map 7.Map leaderInfoMap = new ConcurrentHashMap(),表示Map

size/XXL
cla:yes
First-time contributor

### 环境 preview server k8s yaml: https://github.com/LXPWing/preview-server-k8s-yml 线上实验室配置文件: https://github.com/LXPWing/mosn-tutorial/tree/master/layotto/layotto-with-bookinfo bookinfo k8s yaml: https://github.com/LXPWing/layotto/tree/main/deploy/k8s/bookinfo 线上实验室演示:https://killercoda.com/lixingpeng/course/layotto/layotto-with-bookinfo ### 问题 preview server与bookinfo都部署在default namespace下, preview server yml中设置`replicas: 1`但实际部署中会超出1个pod且报错,同时preview server pod中的镜像数量会比yml中设置的多1个。bookinfo 的一些pod也会出现超出设置数量且报错。 ![image](https://user-images.githubusercontent.com/65880844/184784734-54a64a7e-b837-45a0-ae36-0846721b0557.png) ### 尝试解决 preview...