HelloWood

Spring Boot 2.3+ Liveness 和 Readness 接口使用

SpringBoot
Spring Boot 2.3+ Liveness 和 Readness 接口使用在 Spring Boot 2.3+ 中,提供了单独的 liveness 和 readness,用于为 Kubernetes 提供相应检查接口 liveness用于检查应用是否存活,当应用组件因故障不健康时 ...
Read more

SpringBoot 框架自带插件构建 Docker 镜像

SpringBoot Docker
SpringBoot 框架自带插件构建 Docker 镜像Spring Boot 2.3.0 之后支持通过 buildpacks 插件构建 Docker 镜像,原理和执行过程与 Jib 类似,支持 Spring Boot 项目的分层构建,当代码改动后,只需更新代码部分,可以减少构建后 pus ...
Read more

Raspberry Pi 4 使用 Grafana 监控

RaspberryPi Grafana
Raspberry Pi 4 使用 Grafana 监控运行 InfluxdbInfluxdb 和 Prometheus 一样都是时序数据库,不同的是它能够作为一个转发代理接受来自不同程序的消息,这里使用 Telegraf 采集数据,存放到 Influxdb 中 启动 挂载的目的是为了将 ...
Read more

Raspberry Pi 4 使用 USB 从 SSD 启动

RaspberryPi
Raspberry Pi 4 使用 USB 从 SSD 启动树莓派 4 的最新固件已经支持从USB 启动,通过外接 U盘或者硬盘,能够摆脱 SD 卡的IO 速度限制,这里通过 USB 从 SSD 硬盘启动系统 安装 Raspberry Pi OS 下载 Imager 从 https:// ...
Read more

Spring Cloud 使用 Consul 作为配置中心

Java SpringCloud
Spring Cloud 使用 Consul 作为配置中心加载配置加载配置是通过 ConsulPropertySourceLocator 来实现的,该类是 PropertySourceLocator接口的实现类 Bean 初始化1234@Beanpublic ConsulPropertySo ...
Read more

Spring Cloud 使用 Kubernetes 作为配置中心

Java SpringCloud
Spring Cloud 使用 Kubernetes 作为配置中心Spring Cloud 支持使用 Kubernetes 作为配置中心,通过 ConfigMap 或 Secret,将配置添加到应用中 加载配置加载配置是通过 PropertySourceLocator 来实现的,Config ...
Read more

Spring Cloud Consul 服务注册和发现

Java SpringCloud
Spring Cloud Consul 服务注册和发现Spring Cloud Kubernetes 使用,可以通过引入 org.springframework.cloud:spring-cloud-starter-consul-discovery,这个 starter 依赖于 org.sp ...
Read more

Spring Cloud Kubernetes 服务注册和发现

Java SpringCloud
Spring Cloud Kubernetes 服务注册和发现Spring Cloud Kubernetes 使用,可以通过引入 org.springframework.cloud:spring-cloud-starter-kubernetes,这个 starter 依赖于 org.spri ...
Read more

Spring Cloud Gateway 使用 Kubernetes 作为服务发现

Java SpringCloud
Spring Cloud Gateway 使用 Kubernetes 作为服务发现Spring Cloud Gateway 作为网关,通过用于执行一些通用逻辑后做请求转发,后端可能涉及到多个服务,每个服务又有多个实例,调用服务实例就需要动态的更新,可以通过注册中心来实现,如果部署在K8S集群 ...
Read more

Spring Cloud Gateway 使用 Kubernetes 实现负载均衡

Java SpringCloud
Spring Cloud Gateway 使用 Kubernetes 实现负载均衡在使用 Spring Cloud Gateway 作为服务服务发现时,可能会遇到 Gateway 并没有部署在服务所在的 Kubernetes 集群中,或者存在网络隔离,无法直接通过 Service Name ...
Read more

Prometheus 使用 Consul 自动发现 Spring Boot 服务并拉取数据

SpringBoot Prometheus Grafana Consul
Prometheus 使用 Consul 自动发现 Spring Boot 服务并拉取数据使用 Prometheus监控 SpringBoot 应用,当应用很多,且上下线频繁时,需要不断的更改 Prometheus 的配置文件,不能灵活的使用,可以通过为 Prometheus配置注册中心,从 ...
Read more

使用自定义 Grafana 面板监控 Consul

Prometheus Grafana Consul
使用自定义 Grafana 面板监控 Consul使用 Prometheus和 Grafana监控 Consul,Dashboard 中的基本都是Consul 自身的状态,除此之外,还需要一些业务相关的监控,比如当前注册的服务数量,健康和不健康的服务数量,拉取服务请求响应时间等数据 使用已有 ...
Read more

使用 Prometheus 和 Grafana 监控 SpringBoot 应用

SpringBoot Prometheus Grafana
使用 Prometheus 和 Grafana 监控 Spring Boot 应用监控 Spring Boot 应用的状态,以及一些自定义的业务数据 监控 Spring Boot 应用 添加依赖 build.gradle 123compile('org.springframew ...
Read more

使用 Prometheus 和 Grafana 监控 Consul

Prometheus Grafana Consul
使用 Prometheus 和 Grafana 监控 Consul使用 Prometheus 和 Grafana 监控 Consul ,便于了解 Consul当前的状态,使用 Docker分别启动多个容器 启动 Consul 创建配置文件 12mkdir -p ~/docker/con ...
Read more

Seata 高可用部署实践

Seata
Seata 高可用部署实践使用配置中心和数据库来实现 Seata 的高可用,以 Nacos 和 MySQL 为例,将cloud-seata-nacos应用部署到 Kubernetes 集群中 该应用使用 Nacos 作为配置和注册中心,总共有三个服务: order-service, pay- ...
Read more

Kubernetes 中使用 Helm 部署使用 Prometheus

Kubernetes Helm Prometheus
Kubernetes 中使用 Helm 部署使用 Prometheus 使用 Helm 在 Kubernetes 中部署 Prometheus,并使用 Grafana 监控集群状态,Helm 版本为 Helm3 安装 Prometheus 和 Grafana添加标准仓库如果没有 stabl ...
Read more

树莓派 4b 无网线安装 Ubuntu 并初始化

Ubuntu RaspberryPi
树莓派 4b 无网线安装 Ubuntu 并初始化 必需设备: 树莓派 4b SD 卡 HDMI 线 显示器 键盘 电源及数据线 设置镜像在树莓派官网的连接,找到 Ubuntu,根据指引,找到 Ubuntu 的镜像,即https://ubuntu.com/download/raspber ...
Read more

使用 GitHub 作为 Helm 仓库

Kubernetes Helm
使用 GitHub 作为 Helm 仓库 使用 GitHub 作为 Helm 的仓库;在创建前需要按照 Helm,以 Helm3 为例 准备工作 创建仓库 在 GitHub 上创建名为 helm-chart的仓库 本地创建 helm-chart文件夹 创建并配置仓库 进入文件夹,并 ...
Read more

使用腾讯云的Serverless部署天气应用

Serverless Go
使用腾讯云的Serverless部署应用 使用腾讯云的Serverless服务,部署一个Go编写的天气变化的提醒应用该应用通过定时查询高德地图的天气API,当当前天气或未来几天天气不好时,通过Server酱在微信中进行提醒 构建应用应用使用 go modules开发 go.mod 12 ...
Read more

Go 调用 Windows 的系统 API,检测是否锁屏

Go
Go 调用 Windows 的系统 API,检测是否锁屏 因为应用需要根据当前电脑是否处于活跃状态来执行不同的动作,所以需要获取电脑当前活跃的窗口判断是否处于锁屏可以通过调用Windows 的库来执行相应的API 12345678910111213141516171819import ( ...
Read more
Prev Next