Recommended Posts

Python IO Multiplexing Practice

In the past few days, I have been studying the Tornado source code and

Read more

Explanation of Go channels

This article is based on the analysis of the source code of version go

Read more

k8s PVC Auto Scaling Practice

DependenciesThis practice depends on: k8s version >= 1.24 pvc-auto

Read more

Python deep copy and shallow copy

When it comes to object copying in Python, we need to understand the d

Read more
如何在k8s中使用GCS备份ES数据 如何在k8s中使用GCS备份ES数据
Elasticsearch 是一个超级炫酷的开源搜索引擎,可以在各种不同的环境中使用。为了妥善保管数据,就必须得备份 ES 集群数据。鉴于公司的 k8s 集群部署在 GCP 上,自然而然想到了使用 GCS 作为备份数据存储,为了做到这一步需
2023-08-27 Perror
js压缩导致的BUG js压缩导致的BUG
问题描述基于gin-vue-admin项目开发了一个后台管理项目,在上线后一直挺好的,但是最近一段时间总是出现各种问题, 比如登录成功后白屏、切换路由之后白屏以及动态切换路由显示错误。这些问题非常奇怪,在本地开发环境一切正常,只要上了服务器
2023-05-22 Perror
How to install the Velero backup application on GKE How to install the Velero backup application on GKE
Versions velero: v1.9.0 gke: v1.25.6-gke.200 velero helm charts: 2.30.1 flux cd: 0.36.0 Import helm chart repository Cr
2023-03-11 Perror
How to fix the "no matches for kind "PodSecurityPolicy" in version "policy/v1beta1" error in Grafana How to fix the "no matches for kind "PodSecurityPolicy" in version "policy/v1beta1" error in Grafana
After upgrading the cluster to Kubernetes 1.25, if Grafana was deployed previously with rbac.spsEnabled=true enabled, th
2023-02-28 Perror
install fluxcd in k8s 1.25.5 install fluxcd in k8s 1.25.5
Here are the steps to use Flux CD for GitOps on Kubernetes: Install Flux CLI: Use the command brew install fluxcd/tap/f
2023-02-18 Perror
mysql error: rec.cc:391 thread mysql error: rec.cc:391 thread
此错误仅在 MySQL 8.0.30 版本中存在。请参见 https://bugs.mysql.com/bug.php?id=107941 bug 报告。升级 MySQL 版本到 8.0.31 可以解决此错误。
2023-02-18 Perror
如何清理 Kubernetes namespace 中的 finalizers 并成功删除 argocd namespace 如何清理 Kubernetes namespace 中的 finalizers 并成功删除 argocd namespace
在删除 Kubernetes 集群中的资源时,我遵循以下步骤: 删除所有 deploy。 删除所有 configmap。 删除所有 namespace。   然而,我发现在删除 namespace 时出现了问题。尝试
2023-02-18 Perror
k8s PVC Auto Scaling Practice k8s PVC Auto Scaling Practice
DependenciesThis practice depends on: k8s version >= 1.24 pvc-autoresizer version >= 0.5.0 Install pvc-autoresiz
2023-02-18 Perror
redis的一些小知识 redis的一些小知识
Redis数据类型的使用场景 String:其value可以储存string以及数字类型,一般用于复杂的技术功能上。 Hash:其value存放的是结构化的对象,可以方便地操作某个字段,我使用它实现过用户行为数据缓存以及session功能。
2023-02-18 Perror
cast Type Conversion Library - Recommended Go Library cast Type Conversion Library - Recommended Go Library
In Go language, type conversion is a frequently used operation, but converting values between different types requires i
2023-02-18 Perror
Understanding Redis SDS Understanding Redis SDS
What is SDS? SDS is an abstract type built by Redis, mainly used to store Redis’ default string representation, the AOF
2023-02-18 Perror
Explanation of Go channels Explanation of Go channels
This article is based on the analysis of the source code of version golang 1.12.1, where the chan source code is located
2023-02-18 Perror
Python IO Multiplexing Practice Python IO Multiplexing Practice
In the past few days, I have been studying the Tornado source code and found that although Tornado claims to use an asyn
2023-02-18 Perror
python dict python dict
Python’s dict is a mapping type that uses a hash table to store data, making the query speed time complexity O(1), which
2023-02-18 Perror
Python deep copy and shallow copy Python deep copy and shallow copy
When it comes to object copying in Python, we need to understand the difference between is and ==: >>> a = [1,2
2023-02-18 Perror
后端传给前端int 类型数据自增或自减 后端传给前端int 类型数据自增或自减
由于我使用的是Python 3,Python 中的 int 类型与其他语言中的 int 类型不同,Python 将 long 类型也加入到了 int 中。因此,在其他语言中能够正确显示的 int 类型,在 Python 中不一定能够正确显示
2018-03-16 Perror
python内置函数 python内置函数
abs(x): 接受一个整数或浮点数作为参数,返回该参数的绝对值,如果该参数是一个复数,则返回复数的模。 >>> abs(-1) 1 >>> abs(4 - 8j) 8.94427190999916 al
2017-12-15 Perror
aiohttp,asyncio,RunTimeError aiohttp,asyncio,RunTimeError
Firstly, you may have encountered the AssertionError: There is no current event loop in thread ‘Thread-1’. This is becau
2017-07-13 Perror
1 / 2