apollo

Spring Cloud Alibaba基础教程:Sentinel使用Apollo存储规则

匿名 (未验证) 提交于 2019-12-02 23:34:01
Sentinel自身就支持了多种不同的数据源来持久化规则配置,目前包括以下几种方式: 文件配置 Nacos配置 ZooKeeper配置 Apollo配置 本文我们就来一起动手尝试一下,如何使用Apollo来存储限流规则。 下面我们将同时使用到 Apollo 和 Sentinel Dashboard ,所以可以先把 Apollo 和 Sentinel Dashboard 启动起来。 如果还没入门 Sentinel Dashboard 可以通过文末的系列目录先学习之前的内容。Apollo的话相对复杂一些,这里不做详细介绍了,如果还没有接触过Apollo的读者可以查看其 官方文档 进一步学习。 第一步 :在Spring Cloud应用的 pom.xml 中引入Spring Cloud Alibaba的Sentinel模块和Apollo存储扩展: <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter

apollo 安装部署

匿名 (未验证) 提交于 2019-12-02 23:05:13
版权声明:本文为博主原创文章,未经允许不得转发 https://blog.csdn.net/fengchen0123456789/article/details/86605056 下载 下载 https://github.com/nobodyiam/apollo-build-scripts 目录中有 sql 文件夹 在本地新建2个数据库,名字和sql文件一样,也可以自定,改一下sql对应的名字即可,新建好之后,分别导入sql到相应数据库 导入不了解参考 https://blog.csdn.net/fengchen0123456789/article/details/78697090 修改配置 修改 demo.sh 文件,把数据库对应改一下,还有 meta server url,如下 # apollo config db info apollo_config_db_url=jdbc:mysql://127.0.0.1:3306/ApolloConfigDB?characterEncoding=utf8 apollo_config_db_username=root apollo_config_db_password=admin # apollo portal db info apollo_portal_db_url=jdbc:mysql://127.0.0.1:3306

Apollo整合SpringBoot

匿名 (未验证) 提交于 2019-12-02 23:04:42
Ŀ¼ 项目依赖 AppId配置 Apollo Meta Server配置 配置本地缓存路径 自定义缓存路径 Environment配置 Spring Boot集成 项目依赖 在springboot项目中导入apollo依赖 (注:依赖的版本与配置中心使用的版本保持一致) <dependency> <groupId>com.ctrip.framework.apollo</groupId> <artifactId>apollo-client</artifactId> <version>1.1.2</version> </dependency> <dependency> <groupId>com.ctrip.framework.apollo</groupId> <artifactId>apollo-core</artifactId> <version>1.1.2</version> </dependency> AppId配置 AppId是项目的唯一标识,可以通过3种方式设置,按照优先级从高到底分别为: System Property 通过System Property传入app.id信息,如:-Dapp.id=YOUR-APP-ID Spring Boot application.properties 通过Spring Boot的application.properties文件配置,如

SpringBoot 整合 apollo

匿名 (未验证) 提交于 2019-12-02 21:35:18
Apollo(阿波罗)是携程框架部门研发的分布式配置中心,能够集中化管理应用不同环境、不同集群的配置,配置修改后能够实时推送到应用端,并且具备规范的权限、流程治理等特性,适用于微服务配置管理场景。 通过对比,可以看出,生成环境中 Apollo 相比 Spring Cloud Config 更具有优势一些。 参照 https://github.com/ctripcorp/apollo/wiki/Quick-Start 搭建 Apollo 配置中心,文档写的很清楚,这里就赘述了。 搭建完成并启动后,访问 http://localhost:8070 ,界面如下。 输入用户名 apollo,密码 admin 后登录后,点击SampleApp进入配置界面。 创建一个springboot项目,主要代码如下。 pom.xml 添加 Apollo 客户端的依赖,为了编码方便引入commons-lang3。 <dependency> <groupId>com.ctrip.framework.apollo</groupId> <artifactId>apollo-client</artifactId> <version>1.3.0</version> </dependency> <!-- 为了编码方便,并非apollo 必须的依赖 --> <dependency> <groupId>org

React Apollo - Make Multiple Queries

心不动则不痛 提交于 2019-12-02 16:37:50
I have a queries file that looks like this: import {gql} from 'react-apollo'; const queries = { getApps: gql` { apps { id name } } `, getSubjects: gql` { subjects { id name } } ` }; export default queries; I then import this file to my React component: import React, {Component} from 'react' import queries from './queries' class Test extends Component { ... } export default graphql(queries.getSubjects)(graphql(queries.getApps)(Test)); This will only get data for one of the queries (getApps) and not both. If I do one at a time so that it looks like this: export default graphql(queries

Apollo多环境切换

ⅰ亾dé卋堺 提交于 2019-12-02 15:08:27
在初学Apollo的时候,一直有一个问题没想通,就是Apollo多个环境是怎么创建和切换的。刚突然想通了,先记录一下,后续待验证测试。 创建多个环境 看官方文档时,Apollo有一个很便利的特点,就是portal可以管理多个环境,如env=dev(fat,uat,pro…),所以第一,我们需要有这多个环境。根据官方文档,每一个环境需要独立部署一套Config Service、Admin Service和ApolloConfigDB,所以第一步需要在不同的服务器安装这些环境。(portal和ApolloPortalDB可以共用)。 将多个环境配置到portal中 向portal添加环境其实很简单,只需要修改portal的配置文件就好(apollo-env.properties这里有多种方式,可以去查看官网文档,我这里只写集群部署的配置文档)。 文档基本内容如下: local.meta=http://localhost:8080 dev.meta=http://localhost:8080 fat.meta=http://fill-in-fat-meta-server:8080 uat.meta=http://fill-in-uat-meta-server:8080 lpt.meta=${lpt_meta} pro.meta=http://fill-in-pro-meta-server

Apollo GraphQl Storing derived data

好久不见. 提交于 2019-12-02 14:59:44
问题 Some context : I'm developing a React JS app that reads geographic points out of a database and graphs/maps them in various ways. There are raw maps and plots that just show data straight from the database but there are also plots and metrics that involve analysis on the points like slope plot, area under graph, histograms, Euclidean distance etc. I have a GraphQL client set up to feed me data to my react app with Apollo-Client installed. Here's a sample of the GraphQL response: { "data": {

【笔记】apollo无人驾驶 - 百度技术学院

给你一囗甜甜゛ 提交于 2019-12-02 14:56:24
文章目录 【笔记】apollo无人驾驶 - 百度技术学院(只记录了高精地图+感知) 0. 视频链接: 1. 知识点 HD Map 高精地图(lidar 采集的) 定位 传感器 传感器融合 2. apollo 技术框架 3. 研发流程 4. 高精地图 5. 感知 【笔记】apollo无人驾驶 - 百度技术学院(只记录了高精地图+感知) 0. 视频链接: https://www.bilibili.com/video/av56529220/?p=43 1. 知识点 HD Map 高精地图(lidar 采集的) HD Map: 车道线级别,含红绿灯位置,交通标志位置类别信息。 Intensive Map: 含静态障碍物、电线杆、树。 定位 GPS: 全球定位系统,米级别; RTK:架基站一样的定位站,10cm 级别; IMU:惯性导航,提供加速度等信息; 几何定位:根据周围的环境信息类定位,如隧道场景中 传感器 lidar 激光雷达:波长是纳米级别的,发出的是激光束,基本沿实现传播,不能绕过雾霾,雨滴。感知和建地图都会用到激光雷达。 radar 雷达:全天候的, 摄像头: 毫米波雷达:波长毫米级别,检测距离不够远,倒车使用。 传感器融合 摄像头、激光雷达、毫米波雷达:不同传感器中的对同一个目标感知出的数据不同,最后融合做分割、分类、跟踪。 2. apollo 技术框架 框架分四层: 3.