199 Commits

Author SHA1 Message Date
wujiawei
cf10347939 【fix】 控制mysql占用内存在150mb左右 2025-02-11 11:26:48 +08:00
wujiawei
98b4701978 This is a Kubernetes configuration file that defines several resources, including:
1. A Pod named `mysql` in the `default` namespace.
2. A Service named `mysql` in the `default` namespace that exposes the Pod's port 3306 and provides a persistent volume for the database data.
3. An Ingress resource that routes incoming requests to the `mysql` service.

The configuration also defines several environment variables, including:

1. `MYSQL_CNF`: a ConfigMap containing a MySQL configuration file (`cnf`) with various settings such as `sql_mode`, `log_timestamps`, and `slow_query_log`.

Here is an annotated version of the configuration:

**Pod:**
```yaml
apiVersion: v1
kind: Pod
metadata:
  name: mysql
spec:
  containers:
  - name: mysql
    image: your-mysql-image
    env:
    - name: MYSQL_CNF
      valueFrom:
        configMapKeyRef:
          name: mysql-cnf
          key: cnf
```
This Pod runs a container with the `your-mysql-image` and uses the `MYSQL_CNF` environment variable to set the MySQL configuration.

**Service:**
```yaml
apiVersion: v1
kind: Service
metadata:
  name: mysql
spec:
  selector:
    app: mysql
  ports:
  - name: mysql
    port: 3306
    targetPort: 3306
  persistentVolumeClaim:
    claimName: mysql-pvc
```
This Service exposes the `mysql` container's port 3306 and provides a persistent volume (`mysql-pvc`) for the database data.

**Ingress:**
```yaml
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  name: mysql-ingress
spec:
  rules:
  - host: your-ingress-hostname.com
    http:
      paths:
      - path: /
        backend:
          serviceName: mysql
          servicePort: 3306
```
This Ingress resource routes incoming requests to the `mysql` Service's port 3306.

**ConfigMap:**
```yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: mysql-cnf
data:
  cnf: |
    [mysql]
    no-auto-rehash

    [mysqld]
    skip-host-cache
    skip-name-resolve
    max_connections=1000
    lower_case_table_names=0
    default-time-zone='+08:00'
    sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'
    log_timestamps='SYSTEM'

    binlog_expire_logs_seconds = 2
    innodb_flush_log_at_trx_commit=2
    group_concat_max_len=1024
```
This ConfigMap contains the MySQL configuration file (`cnf`) with various settings and values.
2025-02-11 10:15:48 +08:00
wujiawei
7da5f58263 [fix] 修复客户端负载问题 2025-01-22 10:20:26 +08:00
wujiawei
a019561c06 [fix] 调整是否统计流量,避免网络问题导致流量缺口,数据丢失 2025-01-16 09:52:03 +08:00
wujiawei
f985cdac8f [fix] 修复数据存乎导致主线程问题 2025-01-09 17:26:12 +08:00
wujiawei
7429cff23a [fix] 版本调整 2025-01-03 13:55:41 +08:00
wujiawei
9fa3359569 [fix] 优化tcp、udp架构 test 2024-12-21 21:57:14 +08:00
wujiawei
fac28c4fc8 [fix] 优化tcp、udp架构 test 2024-12-17 15:14:09 +08:00
wujiawei
f9188037a0 [fix] 优化tcp、udp架构 test 2024-12-17 13:22:16 +08:00
wujiawei
f19b1cae68 [fix] 优化tcp、udp架构 2024-12-17 10:47:25 +08:00
wujiawei
0df0a42b2c [fix] 优化tcp、udp架构 2024-12-16 20:14:45 +08:00
wujiawei
2b3c7cb7c2 [fix] 优化tcp、udp架构 2024-12-16 18:59:02 +08:00
wujiawei
daeba59a43 [fix] 优化tcp、udp架构 2024-12-16 18:53:08 +08:00
wujiawei
cb4c9c0b41 [fix] 优化tcp、udp架构 2024-12-16 18:45:17 +08:00
wujiawei
0ceb88bfe3 [fix] 优化tcp架构 2024-12-13 14:30:38 +08:00
wujiawei
42bc37c712 [fix] 优化tcp架构 2024-12-13 14:29:11 +08:00
wujiawei
41a81133f1 [fix] 优化tcp架构 2024-12-13 13:35:35 +08:00
wujiawei
ddaa5568e0 [fix] 优化tcp架构 2024-12-13 13:26:15 +08:00
wujiawei
9b64c622cc [fix] 优化tcp架构 2024-12-13 13:13:17 +08:00
wujiawei
f11200cee9 [fix] 页面优化 2024-12-03 21:04:48 +08:00
wujiawei
0f04f29cd0 [fix] 优化负载获取可以使用的客户端 2024-11-25 19:34:25 +08:00
wujiawei
3568292ac2 [fix] 优化负载获取可以使用的客户端 2024-11-25 10:40:06 +08:00
wujiawei
1924e87c7d [fix] 优化负载获取可以使用的客户端 2024-11-21 22:54:19 +08:00
wujiawei
30e1141ecf [fix] 优化负载获取可以使用的客户端 2024-11-19 19:21:12 +08:00
wujiawei
79b09ecfea [fix] 优化负载获取可以使用的客户端 2024-11-18 20:41:02 +08:00
wujiawei
5a079fcba8 [fix] records 2024-11-13 21:12:28 +08:00
wujiawei
20bb29350c [fix] records 2024-11-13 20:58:35 +08:00
wujiawei
ea2fb01b7e [fix] records 2024-11-12 15:22:18 +08:00
wujiawei
ba960a70ab [fix] records 2024-11-12 14:53:37 +08:00
wujiawei
4de7cdb6be [fix] 修复客户端渗透服务端流量计算错误问题 2024-11-09 20:30:25 +08:00
wujiawei
1c6f56d31e [fix] 修复客户端渗透服务端流量计算错误问题 2024-11-09 20:18:27 +08:00
wujiawei
8952d2277f [fix] 添加客户端渗透客户端流量记录 2024-11-09 20:03:53 +08:00
wujiawei
dab6e580e4 [fix] test 2024-11-09 14:58:53 +08:00
wujiawei
9edb6f3d4d [fix] 2024-11-09 14:57:34 +08:00
WJWJW
3740a4f4ea fix 2024-11-09 14:56:33 +08:00
wujiawei
3b57ee1c23 [fix] 适配接口允许代理 2024-11-06 21:07:21 +08:00
wujiawei
b76f7a8f62 [fix] 适配接口允许代理 2024-11-05 21:20:00 +08:00
bug-fix
aa056dbe07 【fix】 2024-10-31 20:48:38 +08:00
bug-fix
810579178f 【fix】 2024-10-31 19:10:44 +08:00
wujiawei
240de53888 [fix] 2024-10-30 21:05:44 +08:00
wujiawei
2eb6dc2775 [fix] // TODO 流量并发异常 2024-10-30 20:56:46 +08:00
wujiawei
c665bf687d [fix] // TODO 流量并发异常 2024-10-30 18:36:14 +08:00
wujiawei
1e2f58b5a3 [fix] // TODO 流量并发异常 2024-10-28 23:17:08 +08:00
wujiawei
381f8a6960 [fix] 规范客户端渗透表信息 2024-10-28 23:06:31 +08:00
wujiawei
a04499ab4b [fix] log 2024-10-28 22:54:29 +08:00
wujiawei
477d8cfaac [fix] log 2024-10-28 22:23:53 +08:00
wujiawei
b2cd1eee0a [fix] 通道数据添加appKey、appSecret、originalIp验证 2024-10-28 14:24:16 +08:00
wujiawei
b7d571ccc1 [fix] 通道数据添加appKey、appSecret、originalIp验证 2024-10-19 22:31:41 +08:00
wujiawei
55ce3ff359 [fix] 表名称调整 2024-10-12 15:16:09 +08:00
wujiawei
42e8e5afec [fix] 调整计划适配多客户端问题 2024-10-10 22:20:09 +08:00