233 Commits

Author SHA1 Message Date
wujiawei
9dc36fe8e9 【fix】修复无法启动问题 2025-04-30 16:02:07 +08:00
wujiawei
f2a22c177e 【fix】 2025-04-30 15:19:56 +08:00
wujiawei
98587b442c 【fix】 添加socket5代理demo 2025-04-30 13:54:40 +08:00
wujiawei
e51ad201de 【fix】 优化代理 2025-04-29 09:15:59 +08:00
wujiawei
d8a8b630ae 【fix】 优化代理 2025-04-08 16:52:07 +08:00
wujiawei
e0f461460a 【fix】 优化代理 2025-04-08 16:43:29 +08:00
wujiawei
75acddadca 【fix】 优化代理 2025-04-08 16:41:14 +08:00
wujiawei
50e67f54e3 【fix】 so nice serve proxy client is easy 2025-04-08 12:52:30 +08:00
wujiawei
3444e90d3d 【fix】 so nice serve proxy client is easy 2025-04-07 21:50:05 +08:00
wujiawei
b1b329aae1 【fix】 bug fix 2025-04-06 23:03:12 +08:00
wujiawei
26283de998 【fix】 bug fix 2025-04-06 22:54:57 +08:00
wujiawei
9c5000f995 【fix】 bug fix 2025-04-06 22:43:01 +08:00
wujiawei
532d05d4a8 【fix】 bug fix 2025-04-06 22:24:01 +08:00
wujiawei
402f6f0ac1 【fix】 bug fix 2025-04-06 22:18:22 +08:00
wujiawei
a5a3d7d6f2 【fix】 bug fix 2025-04-06 21:59:48 +08:00
wujiawei
e4c33f34c1 【fix】 bug fix 2025-04-06 21:28:55 +08:00
wujiawei
394dfdf337 【fix】 bug fix 2025-04-06 21:27:22 +08:00
wujiawei
9b44a199be 【fix】 bug fix 2025-04-06 21:24:12 +08:00
wujiawei
fe8a2c865a 【fix】 添加客户端代理客户端 2025-04-06 18:52:31 +08:00
wujiawei
ba8ca7bcd9 【fix】 添加服务端、客户端路由管理接口 2025-04-06 01:26:21 +08:00
wujiawei
9a211ad200 【fix】 添加服务端、客户端路由管理接口 2025-04-06 01:07:35 +08:00
wujiawei
40ab82de35 【fix】 添加服务端、客户端路由管理接口 2025-04-06 00:43:04 +08:00
wujiawei
8728cd5d54 【fix】 添加服务端、客户端路由管理接口 2025-04-06 00:41:38 +08:00
wujiawei
3f7f10bcd5 【fix】 添加服务端、客户端路由管理接口 2025-04-05 21:05:57 +08:00
wujiawei
269a0f2ba2 【fix】 添加服务端、客户端路由管理接口 2025-04-05 18:01:26 +08:00
wujiawei
8f02c03d42 【fix】 添加服务端、客户端路由管理接口 2025-04-05 18:01:23 +08:00
wujiawei
9e1da9649e 【fix】 支持本地代理 2025-04-05 13:09:45 +08:00
wujiawei
074ab4f217 【fix】 ip is null 2025-04-03 11:32:07 +08:00
wujiawei
07e8b20449 【fix】 http代理顺利验证通过 2025-03-22 12:40:21 +08:00
wujiawei
2a98ec0589 【fix】 http代理顺利验证通过 2025-03-22 00:09:18 +08:00
wujiawei
3321e0dd7b 【fix】 添加协议解析处理 2025-03-21 20:57:44 +08:00
wujiawei
cf9438a7da 【fix】 域名解析正常 2025-03-14 21:07:42 +08:00
wujiawei
4690bc85b3 【fix】 add dns module; 2025-03-08 23:16:32 +08:00
wujiawei
2389a25e11 【fix】 优化使用 EventLoopGroup bossGroup = EventLoopGroupFactory.createBossGroup();
EventLoopGroup workerGroup = EventLoopGroupFactory.createWorkerGroup();
2025-02-18 17:21:00 +08:00
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