~/极核实验室 / tag / jiao-cheng
Introduction
When you want to get started with K8S, you often get dizzy from all kinds of concepts, such as API Server, Scheduler, Controller manager, Etcd, Pod, Kubelet, kube-proxy, deployment......
Even if you use various graphical panels, such as kuboard, which I used before, and KubeSphere, which I use now, they can't truly shield the underlying concepts and let users focus on applications. At this point, you might
The official environment and the environments used in the now-ubiquitous tutorials are all brand-new environments, but during my actual deployment I found a problem:
Not many people can actually afford a dedicated machine, or buy hardware themselves and install PVE for virtualization like I did; most deploy on a single server, running their own blog as well as other things.
Most students use cost-effective providers such as 雨云, and 雨云 is probably the most used—after all,
Other tutorials all introduce installation in a brand-new environment and do not explain how to solve port occupancy issues, which leads to when deploying Di
The threshold for publishing a website to the public Internet is very low. Simply put, you need a domain name and a server (or virtual hosting). Let's first look at the difference between a server and virtual hosting.
A server uses virtualization technology to virtualize multiple low-spec servers on one high-spec server for customers to use. Generally speaking, a server offers a very high degree of freedom, and most have their own dedicated IP address, but everything must be manually set up from scratch, such as the web server, database, etc. However, you can also install a virtual hosting panel on your own server and rent it to other users, which can recover some costs.
The difference between dynamic and static websites
Common beginner misconceptions:
A dynamic website does not mean a website with animations or moving elements
A static website does not mean a website without animations or moving elements
The correct understanding is:
A dynamic website means the HTML (HyperText Markup Language) returned to users is generated dynamically. For example, my website is a dynamic website: I can log in to the backend to publish articles without updating the HTML code; instead, the articles are stored in a database, and then PHP (PHP: Hypertext Preprocessor) reads the content from the database and places it in the designated location to render the final interface users see
A static website means
If you still don't know how to find some free and easy-to-use source code to deploy websites, services, etc., I highly recommend reading this article. This article explains how to use GitHub's search function to find high-quality open source projects, and you can also learn how, when you encounter a website that looks like it was deployed from an open source project, to reverse-engineer what open source it uses
In real environments, upgrades are often fraught with risk. In some cases, the entire service may crash immediately after an update. If you use something like Docker, it's not too bad—you can roll back to a previous version using tags—but there will always be some downtime. In such cases, we can try blue-green deployment.
Official documentation's description/usage of blue-green deployment
Blue-Green Deployment
In a blue-green deployment scenario, you need to maintain two environments. Once new changes are tested and accepted in the blue environment (staging), user traffic is shifted from the green environment (production) to the blue environment.
First, let's confirm that Git and Vim are already installed on the server, since we'll need them later
Since we are using Ubuntu, the commands are
apt-get update
apt-get install git vim -y
After the execution is complete, clone the official repository
git clone https://github.com/apache/apisix-docker.git
cd apisix-docker/example
Next
As my Matomo grows larger, feature requirements increase, and plugins become more and more numerous, using a traditional LNMP or LAMP architecture will reveal that performance is dropping sharply. To address this, we found a solution using FrankenPHP (hereinafter referred to as FPHP)
Deploy the website
We use the following command to install the database and gpg tools
apt install mariadb-server gpg
If a prompt like this appears, just ignore it and use the Tab key to switch to ok and press Enter
First, we
This article was submitted by the original author (https://forum.rainyun.com/u/LIFL)
Original address: Answer Installation Tutorial | 星空'Blog (chacks.top)
Originality Statement
This article is simultaneously published on 风屿岛, 雨云论坛, and 星空'Blog
Please indicate the original address when reposting
Introduction
What is Answer?
Answer helps you build a Q&A community among users or teams. You can share knowledge here and help users solve problems.
Answer Official
Answer
If you haven't read the bare-metal deployment guide, it is recommended to read it first
[postsbox post_id="19337"]
Prepare the server
First, it is recommended to use a device with a relatively clean environment for the build to avoid any weird issues
Here, we take the 1-yuan trial machine from 雨云 as an example, and fully demonstrate the Docker installation, so no APP is pre-installed, and the system uses Ubuntu 22.04
When purchasing, do not click Pay Now; click Trial on the right to get a 1-yuan 1-day trial
After purchasing the trial machine,
What is Garnet
Garnet is a Redis client-compatible caching component written in C# by Microsoft. You can connect to Garnet using the same connection method as a Redis client.
However, Garnet requires the .NET8 runtime to run. For convenience, you can consider building it into a Docker image.
Bare-metal deployment
First, it is recommended to use an overseas server for building to avoid the domestic network environment affecting the installation process. This tutorial uses a 雨云 server and Ubuntu 22.0 provided by 雨云.
This site's optimization results
Backend around 880ms
Some plugins used on this site
Optimization Tutorial
Plugin Selection Recommendations
When choosing plugins, be sure to ensure that multiple plugins do not have conflicting functions, especially caching and optimization plugins
Someone once asked in a certain group: "I installed more than 10 caching plugins, why is the site still slow?"
For this kind of problem, one caching plugin with a poor configuration is enough to slow down performance, let alone more than 10
Every time you change cache settings, be sure to test whether the frontend and backend functions work properly
In some special cases, enabling caching can actually make loading slower