当前位置: 首页 > news >正文

个人性质的网站wordpress批量目录

个人性质的网站,wordpress批量目录,嘉兴做微网站设计,网站一键提交收录Shenyu官网数据同步设计方案如下面图#xff0c;同步方式支持 Zookeeper、Http 长轮询、Websocket、Nacos、Etcd 和 Consul等。我们选择的时候#xff0c;要小心配置参数#xff0c;这里我以官网http和自实现的nacos为例。 官网示例代码 http方式注册 yml配置admin的账号信息… Shenyu官网数据同步设计方案如下面图同步方式支持 Zookeeper、Http 长轮询、Websocket、Nacos、Etcd 和 Consul等。我们选择的时候要小心配置参数这里我以官网http和自实现的nacos为例。 官网示例代码 http方式注册 yml配置admin的账号信息 shenyu:register:registerType: http #zookeeper #etcd #nacos #consulserverLists: http://localhost:9095 #localhost:2181 #http://localhost:2379 #localhost:8848props:username: adminpassword: 123456 nacos方式注册 *** nacos的地址和nacosNameSpace不能错要和admin的一样。 shenyu:register:registerType: nacos #http #zookeeper #etcd #nacos #consulserverLists: localhost:8848 #http://localhost:9095 #localhost:2181 #http://localhost:2379 #localhost:8848props: # username: admin # password: 123456# username: nacos # password: nacosnacosNameSpace: ShenyuRegisterCenter Shenyu-admin的配置 注意命名空间nacosNameSpace要和注册服务时配置一样。 shenyu:register:registerType: nacos #http #zookeeper #etcd #nacos #consul#serverLists: #localhost:2181 #http://localhost:2379 #localhost:8848serverLists: localhost:8848 #http://localhost:2379 #localhost:8848props:sessionTimeout: 5000connectionTimeout: 2000checked: truezombieCheckTimes: 5scheduledTime: 10nacosNameSpace: ShenyuRegisterCenter Shenyu-Admin数据同步到数据库方案 先从注册服务端看 看控制台日志metadata client register success: {appName:http,contextPath:/http,path:/http/order/p*********..... 找到doRegister(metadata, Constants.META_PATH, Constants.META_TYPE) org.apache.shenyu.client.core.disruptor.subcriber.ShenyuClientMetadataExecutorSubscriber public void start(final ShenyuClientRegisterRepository shenyuClientRegisterRepository) {RegisterClientExecutorFactory factory new RegisterClientExecutorFactory();factory.addSubscribers(new ShenyuClientMetadataExecutorSubscriber(shenyuClientRegisterRepository));factory.addSubscribers(new ShenyuClientURIExecutorSubscriber(shenyuClientRegisterRepository));factory.addSubscribers(new ShenyuClientApiDocExecutorSubscriber(shenyuClientRegisterRepository));providerManage new DisruptorProviderManage(factory);providerManage.startup();} 在上一篇disruptor相关介绍 【并发编程】ShenyuAdmin里面数据同步用到的无锁环形队列LMAX Disruptor并发框架_wenchun001的博客-CSDN博客 从Shenyu-Admin端查看 一个和注册服务信息有关的日志如下图是NacosClientServerRegisterRepository打印出来的 NacosClientServerRegisterRepository init方法 这里很清楚看到有配置信息了 Overridepublic void init(final ShenyuClientServerRegisterPublisher publisher,final ShenyuRegisterCenterConfig config) {this.publisher publisher;String serverAddr config.getServerLists();Properties properties config.getProps();Properties nacosProperties new Properties();nacosProperties.put(PropertyKeyConst.SERVER_ADDR, serverAddr);nacosProperties.put(PropertyKeyConst.NAMESPACE, properties.getProperty(nacosNameSpace));// the nacos authentication usernamenacosProperties.put(PropertyKeyConst.USERNAME, properties.getProperty(PropertyKeyConst.USERNAME, ));// the nacos authentication passwordnacosProperties.put(PropertyKeyConst.PASSWORD, properties.getProperty(PropertyKeyConst.PASSWORD, ));// access key for namespacenacosProperties.put(PropertyKeyConst.ACCESS_KEY, properties.getProperty(PropertyKeyConst.ACCESS_KEY, ));// secret key for namespacenacosProperties.put(PropertyKeyConst.SECRET_KEY, properties.getProperty(PropertyKeyConst.SECRET_KEY, ));try {this.configService ConfigFactory.createConfigService(nacosProperties);this.namingService NamingFactory.createNamingService(nacosProperties);} catch (NacosException e) {throw new ShenyuException(e);}subscribe();} 注册服务方法 private void publishMetadata(final String data) {LOGGER.info(publish metadata: {}, data);publisher.publish(Lists.newArrayList(GsonUtils.getInstance().fromJson(data, MetaDataRegisterDTO.class)));} 自实现的注册服务 整个框架默认使用的是nacos作为服务注册中心暂时未开源出来。 代理路由选择器 如下图scm的路由会自动注册上来。
http://wiki.neutronadmin.com/news/405218/

相关文章:

  • 学校电脑课做网站的软件建e室内设计网 周婷
  • 网站打开慢原因广州门户网站开发
  • 购物网站优化的建议整形网站开发
  • 中小企业建网站多少钱php在网站开发中的作用
  • 大连seo网站管理房产app平台有哪些
  • 手机网站会员中心模板免费公司介绍网站怎么做
  • 免费企业黄页查询网站网页分为哪几种类型
  • 做网站的公司dw网页制作教程个人网站
  • 奇墙网站建设住房和城乡建设部建造师官网
  • 网站错误代码500像素人物制作网站
  • 网站开发团队架构淘宝官网首页网站
  • 外包做网站需要多少钱中装建设属于什么板块
  • 东莞网站改版高端网站定制平台
  • 北京市建设工程审核网站scf900色带
  • xp系统做网站服务器吗php开发网站
  • 郑州建设厅官方网站网站建设发文章几点发比较合适
  • 河北建设工程招标投标协会网站软件前端开发主要做什么
  • 成都的网站建设开发公司面包屑导航的网站
  • 多少钱做网站做网站怎么写代码
  • 国外可以做推广的网站吗wordpress 开头空格
  • 深圳做二类医学学分的网站无锡建设市场网站
  • 雪域什么网站是做电影的用ftp做网站
  • 网站空间申请微信平台微商城
  • 小公司做网站的好处自助发稿
  • 成都 广告公司网站建设链接点击量软件
  • 广州商城型网站建设宁波seo网络推广报价
  • 门户网站建设文案怎么做网站上翻译泰剧
  • 贵阳企业网站建设制作怎么模仿别人做网站
  • 网站备案接入商网络广告营销特性
  • 建设网站模块需要哪些群辉装wordpress