开发运维 | Dev Ops 分类归档

服务器开发
CentOS PHP Apache Nginx MySQL 环境的开发笔记

2023 年服务器维护展望

今年测试了很多新技术包括了juicefs还有etcd相关的一些性能极限,也发现了k3s在Edge应用中的一些问题。总的来说,Kubernetes整体的设计思路还是没有Edge化,不过Edge究竟是什么,研究生搞了一堆Edge相关的研究,结果Edge还是没能太明白(如果弄得明白可能我就去读个PhD了)。我觉得Edge就是在极端的中心化的Cloud和极端去中心化的P2P之间的一个平衡吧,它应该包含了Cloud 和 Distributed Computing,简而言之 Edge Computing = Cloud + Distributed Computing.

服务器相关也是,弄了一个日本的节点,用上了OVH的S3 和Juicefs,整体的成本也是下降得不错。Nextcloud感觉就没有那个需要了,所以也就不装了。以后的东西大部分都打包到容器当中,弄成一个个的Dev Container,放到GoHarbor上面去。GoHarbor还是挺方便的,然后GoHarbor的基础使用Juicefs降低存储的成本。目前整个网站的PV都是mount在了Goharbor上面,容量高达1PB,不过也没预计用到这么多。

What you should do after you got a new machine?

2023-09-05 0:05:54

[开发运维 | Dev Ops] ,

The following steps can help improve your machine's network performance. One way to improve your machine's network performance is by adjusting the TCP windows and using a better congestion control algorithm. In addition to improving network performance, it may be necessary to prepare your environment for using Kubernetes as well.

 

How to mount a QCOW2 drive

2023-06-25 11:10:03

[开发运维 | Dev Ops] ,

qcow2 file is a common disk file for virtual machines. We don't have to run the VM to gain access to the qcow file system.
It can be mounted directly with a little tweak to the host machine.

How to set up Kubernetes (K3s) cluster on two machines

Kubernetes are very useful for managing servers at a scale. Someone might ask, I don't have more than 3 servers to manage. Should I go for Kubernetes, or could we use Docker or Docker Compose?

In the past several years, I would suggest we could just use Docker Compose. But seeing that more mature and lightweight Kubernetes solutions appeared, I changed my mind and started using Kubernetes if I had more than two machines to manage (or even one machine). I think K3s is a good distribution of Kubernetes which has a relatively small footprint in case you have a small cluster. Comparing it to running the container naked using Docker compose, using K3s will require you to run a few extra Kubernetes administrative processes. That is about 150 MB of extra memory, which should not be a big deal for most IoT devices (I guess).

We are using Kubernetes not just for managing a "huge" cluster but to have verifiable deployment across development and deployment. In our development environment, we downscale the cluster to 1. And in the production or staging environment, we could upscale the deployment if necessary.

This article will describe how to install a light weighted version of Kubernetes -- K3s in two nodes and with IPv6 enabled.

 

2022服务器维护及展望

2022-11-19 11:46:28

[开发运维 | Dev Ops]

2022 年依然是很忙,不过还是将整个服务器迁移至了 Kubernetes , 云原生就是比较的方便,能够在不同的服务器之间轻松迁移。

2021服务器维护展望

2021-06-06 17:15:48

[开发运维 | Dev Ops]

2020年简直是,太忙了真是所谓的百年未有之大变局,忙得没有时间来写博客。

给KVM下的qcow2虚拟硬盘扩容(针对CentOS)

2018-07-11 10:38:11

[开发运维 | Dev Ops] , ,

服务器上的空间其实还是比较吃紧的,VM自己设置的默认盘没有给多少空间,有时候不够用其实也是可以扩容的。记录一下主要的步骤,以免以后要查。。。。

CentOS7 设置备用MX服务器

2017-09-01 23:44:57

[开发运维 | Dev Ops] , ,

虽然配置起来非常简单,还是记录一下内容。我发现使用偏门的顶级域名收到的spam还挺少的,还是说现在已经不流行发spam了。

 

Copyright © 2013-2023 mc256. All Rights Reserved.
Powered by WordPress on top of a dual-stack k3s Cluster using JuiceFS.
Wordpress Theme Designed By mc256.
Encrypted By Let's Encrypt.  Hosted On Linode + OVH + AWS.
DNS Provided By Hostker.
Status Page by CloudFlare Worker.