- prometheus每个主机上启动node_exporter插件暴露主机基础监控cpu mem io
- grafana 使用apache-pulsar-grafana-dashboard替换下
"datasource": "{{ PULSAR_CLUSTER }}"中的{{ PULSAR_CLUSTER }}改成你的数据源名称,然后导入
- 管理工具常用 pulsar-manager pulsarctl pulsar-admin
- prometheus 查看哪些已注册上来
| ClientResources.builder().ioThreadPoolSize(…).computationThreadPoolSize(…).eventExecutorGroup(...).build() | |
| EventExecutorGroup eventExecutorGroup = DefaultEventLoopGroupProvider.createEventLoopGroup(DefaultEventExecutorGroup.class, | |
| computationThreadPoolSize, threadFactoryProvider); | |
| /** | |
| * Create a new client that connects to the supplied uri with shared {@link ClientResources}.You need to shut down the | |
| * {@link ClientResources} upon shutting down your application. You can connect to different Redis servers but you must | |
| * supply a {@link RedisURI} on connecting. | |
| * | |
| * @param clientResources the client resources, must not be {@code null}. |
- prometheus每个主机上启动node_exporter插件暴露主机基础监控cpu mem io
- grafana 使用apache-pulsar-grafana-dashboard替换下
"datasource": "{{ PULSAR_CLUSTER }}"中的{{ PULSAR_CLUSTER }}改成你的数据源名称,然后导入
- 管理工具常用 pulsar-manager pulsarctl pulsar-admin
- prometheus 查看哪些已注册上来
| package com.sf.springbootstrap; | |
| import com.google.common.collect.Maps; | |
| import com.google.gson.Gson; | |
| import com.google.gson.GsonBuilder; | |
| import com.googlecode.aviator.*; | |
| import java.util.Map; | |
| import java.util.Set; | |
| import lombok.extern.slf4j.Slf4j; |
4
bookieHost: "10.206.128.158:3181"
journalDir: "/app/data/bookkeeper/journal"
ledgerDirs: "1\t/app/data/bookkeeper/ledgers"
instanceId: "dcbf9ead-9834-46a6-931c-cafd13ba4831"
| /** | |
| * Copyright (c) Dell Inc., or its subsidiaries. All Rights Reserved. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| */ | |
| package io.pravega.segmentstore.storage.impl.bookkeeper; |
In terms of tools, thinking processes, setup... you really need to start by learning about TLA+. I couldn't explain how it changes your engineering mindset/workflow better than Leslie Lamport himself. So if you're interested in this kind of thing then I highly recommend watching the TLA+ video course by Leslie Lamport: https://www.youtube.com/channel/UCajiu4Cj_GHOX0if3Up-eRA. I personally had to watch it more than once to understand some points.
Leslie Lamport also wrote a book which has been helpful to me: https://lamport.azurewebsites.net/tla/book.html. The book will require a
在项目build.gradle文件内修改/添加 repositories 配置
repositories {
maven {
url 'https://maven.aliyun.com/repository/public/'
}
maven {
url 'https://maven.aliyun.com/repository/gradle-plugin/'| interface QuorumCoverageSet { | |
| /** | |
| * Add a bookie to the result set. | |
| * | |
| * @param bookieIndexHeardFrom Bookie we've just heard from | |
| */ | |
| void addBookie(int bookieIndexHeardFrom, int rc); | |
| /** | |
| * check if all quorum in the set have had the action performed for it. |
https://www.oracle.com/java/technologies/javase/8u-relnotes.html
https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
JDK 8u202(含)及之前的版本都可以免费使用,之后的版本商业用途收费!
Important Oracle JDK License Update
The Oracle JDK License has changed for releases starting April 16, 2019.