原创 解決方案:SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

在maven打包的時候有如下錯誤: init...... SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to

原创 Redis之Cluster應用及源碼分析

Jedis 有4 種工作模式:單節點、分片(Sharded)、哨兵(Sentinel)、集羣(Cluster)。前面兩篇我們分別對Sharded、Sentinel通過實際應用的例子進行了源碼剖析,本文將通過實際的例子對Redis的

原创 Redis之Sentinel應用及源碼分析

Jedis 有4 種工作模式:單節點、分片(Sharded)、哨兵(Sentinel)、集羣(Cluster)。上一篇我們通過實際應用的例子進行了源碼剖析,請點擊Redis之Sharded應用及源碼分析,本文將通過實際的例子對Re

原创 Redis之Sharded應用及源碼分析

Jedis 有4 種工作模式:單節點、分片(Sharded)、哨兵(Sentinel)、集羣(Cluster)。單節點比較簡單,本章我們先從分片開始講解,後續將繼續對哨兵(Sentinel)、集羣(Cluster)進行源碼分析。

原创 一篇學會Redis Sentinel的集羣搭建

參照官網:https://redis.io/topics/sentinel Redis Sentinel 是一個分佈式系統, 你可以在一個架構中運行多個 Sentinel 進程(progress), 這些進程使用流言協議(goss

原创 解決Centos7中-bash: lsb_release: command not found問題

1、問題: 今天在使用lsb_release -a進行系統版本查詢的時候,發現報如下錯誤:lsb_release: command not found. [root@m src]# lsb_release -a -bash: ls

原创 unexpected end of stream on okhttp3.Address 和 Caused by: java.io.EOFException: \n not found: size=0

今天遇到一個OkHttpClient的坑,報錯信息如下: [20200320 10:47:10.553] | [ERROR] | [localhost] | [http-nio-28080-exec-22] | [c.u.] |

原创 內網不在一個網段的兩臺雲服務器搭建K8S 遇到的坑及解決方案

     這兩天在搭建K8S服務器,因爲我的是兩臺不在同一網段的服務器,遇到了不少大大小小的坑,在多次想放棄的情況下,還是一步步艱難排除萬難,取得了最終勝利!言歸正傳,下面一一列舉一下,希望對大家有所幫助。 1、kube init初始化m

原创 kubernetes進階之路(八)~~~ConfigMap

官網:https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/ ConfigMaps allow you to decou

原创 kubernetes進階之路(二)~~~Controller系列之ReplicationController&&ReplicaSet

前一章講解了Pod的屬性,後續的幾章節會陸續介紹管理Pod的Controller,主要包括ReplicationController、ReplicaSet、Deployment、StatefulSets、DaemonSet、Job

原创 kubernetes進階之路(十一)~~~ConfigMap在Ingress Controller中實戰

我們在介紹service的章節中,瞭解了ingress網絡插件,使用了mandatory.yaml文件,在該文件中使用到了ConfigMap。 mandatory.yaml下載地址 https://github.com/kuber

原创 kubernetes進階之路(十五)~~~Storage系列之PV&PVC

1 PersistentVolume 官網:https://kubernetes.io/docs/concepts/storage/persistent-volumes/ PV是K8s中的資源,volume的plugin實現,

原创 kubernetes進階之路(十四)~~~Storage系列之Volume

1 Volume Volume:https://kubernetes.io/docs/concepts/storage/volumes/ On-disk files in a Container are ephemeral, w

原创 kubernetes進階之路(十)~~~Service系列之LoadBalance

4 Service-LoadBalance 通常需要第三方雲提供商支持,有約束性 Ingress 官網:https://kubernetes.io/docs/concepts/services-networking/ingres

原创 kubernetes進階之路(四)~~~Controller系列之StatefulSet && DaemonSet

1 StatefulSet 官網:https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/ StatefulSet is the workload