Commit Graph
82 Commits
Author SHA1 Message Date
guoguangwu e4b396e870 chore: unnecessary use of fmt.Sprintf d
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
2023-11-12 21:08:23 +08:00
Zexi Li 9a9414452b feat(monitor,region,host,cloudmon): support VictoriaMetrics as TSDB backend 2023-11-10 15:36:02 +08:00
Jian QiuandQiu Jian b2bccef742 fix: allow set executor connection timeout (#17448)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-07-06 01:18:01 +08:00
Jian QiuandQiu Jian ec66ff06be fix: lbagent fail to start due to empty prioty and interface (#17116)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-05-20 02:10:45 +08:00
Jian QiuandQiu Jian 7b0d996a0c fix: lbagent ovn options shoule not in common (#16406)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-04-11 09:34:23 +08:00
Qiu Jian 9433fc14a8 fix: add disable_local_vpc option and auto config ovn for lbagent and
host
2023-02-22 14:35:43 +08:00
Qiu Jian d34a04f896 fix: lbagent containerize issues 2023-02-08 10:49:05 +08:00
Jian QiuandQiu Jian c2f2ceafd4 feature: lbagent register (#15872)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-02-02 21:32:30 +08:00
Jian QiuandQiu Jian eb19ad89c7 fix: cloudmon/lbagent api request with app name (#15844)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-01-29 01:45:00 +08:00
Jian QiuandQiu Jian 6c10a39bb3 fix: lbagent switch to backup (#15465)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-12-01 01:23:38 +08:00
Zexi Li 19273b8060 Merge pull request #15439 from swordqiu/feature/qj-vpcagent-sync-handler
Feature/qj vpcagent sync handler
2022-11-28 19:16:45 +08:00
Jian QiuandQiu Jian 5a1c786650 fix: lbagent master fixes (#15331)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-11-28 13:08:52 +08:00
Qiu Jian f6c5006079 feature: vpcagent sync handler 2022-11-25 17:36:09 +08:00
Zexi Li 0e2c520ecd feat(misc): use cloudmux package (#15254) 2022-10-28 19:53:03 +08:00
QIU Jian 293afd2e69 fix: remove apiversion param from session 2022-08-25 09:43:50 +08:00
Jian QiuandQiu Jian 84cdeff92b fix: update vendor for clickhouse v2 (#14520)
* fix: update vendor for clickhouse v2

* fix: fix go vet

* fix: unreachable codes

* fix: composite literal uses unkeyed fields

* fix: ignore bad syntax for struct tag value

* fix: use make test to do test ci job

* fix: specify circleci resource_class

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-06-25 15:52:15 +08:00
Jian QiuandQiu Jian 01a90bad17 fix: lb apis for create-eip/associate-eip/dissociate-eip (#14338)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-05-29 10:24:18 +08:00
Yousong Zhou 37fc897a11 Feature/yousong vpc elb (#11423)
* regiondrivers: kvm: lb: make "network" an optional argument

* loadbalancernetworks: add MacAddr field for lb with eip

* apis: compute: add LOADBALANCER to EIP_ASSOCIATE_VALID_TYPES

* regiondrivers: fix typo RequestAssociat{,e}Eip

* regiondrivers: kvm: RequestAssociatEip: standalone func for each type

* regiondrivers: kvm: RequestAssociateEip: support loadbalancer

* tasks: EipAssociateTask: add support for loadbalancer

* tasks: EipAssociateTask: allow using name for referring to instance

* elasticips: PerformAssociate: validate loadbalancer condition

* tasks: EipDissociateTask: support non-managed loadbalancer

* loadbalancers: add StartSyncstatus method for EipAssociateTask

* regiondrivers: kvm: allow creation of vpc lb

* loadbalanceragents: add timestamp fields for network objects

* climc: eips: add associate type loadbalancer

* mcclient: loadbalancernetworks: add Mac_Addr column

* vpcagent: models: add loadbalancernetworks

* vpcagent: ovn: route back vpc cidr block instead of all rest

* vpcagent: ovn: add ClaimLoadbalancerNetwork()

* mcclient: models: add LoadbalancerNetwork

* mcclient: models: add Network

* lbagent: models: use IBaseManager to accomodate joint manager

* lbagent: models: add {,Loadbalancer}Networks

* lbagent: models: export a few fields

* lbagent: models: add fields for vpc lb models

* iproute2: add NewAddressEx constructor

* lbagent: add worker for vpc lb

* vendor: add github.com/coreos/go-iptables

* lbagent: apihelper: use ovn worker

* lbagent: models: use pkg/compute/models

* mcclient: models: remove lb models

* lbagent: api: use pkg/apihelper

* vpcagent: models: add lblisteners and lbacls

* vpcagent: ovn: add lbacl support
2022-05-06 23:22:50 +08:00
Qiu Jian 533b10f4c2 fix: lbagent pull resources of OneCloud only 2021-12-15 22:41:02 +08:00
Qu Xuan 06dc1c1b87 fix(common): split mcclient modules by service 2021-11-05 19:24:50 +08:00
Yousong Zhou 3ae45d55eb lbagent: fix condition for "nothing to serve" 2020-06-02 21:17:17 +08:00
Yousong Zhou 7e2273bfbf lbagent: standalone rate control between listener and its rules 2020-06-02 21:17:17 +08:00
Yousong Zhou 3d58d51abe lbagent: decouple rule redirect from listener redirect 2020-06-02 21:17:17 +08:00
Yousong Zhou 7f982d5b29 lbagent: fend off unexpected resources just in case
As resource we do not know whether they are bad, but surely we know
they are not what we expect
2020-04-22 18:46:18 +08:00
Qiu Jian 79b6def3c3 fix: sql query errors for missing manager_id and cloudregion_id 2020-03-10 18:01:58 +08:00
Yousong Zhou 65a99551c2 lbagent: fix config for sticky session cookie
- account for user specific cookie name for insert mode
 - dont tamper cache instructions from backend server for server mode
2020-02-18 20:54:12 +08:00
Yousong Zhou 5f16a5fae8 lbagent: fix not logging https listener 2020-01-15 12:14:27 +08:00
Yousong Zhou a468ffedbf lbagent: support accessing backend with tls 2020-01-15 12:14:27 +08:00
Yousong Zhou dfee0713e9 lbagent: support http redirect 2020-01-10 21:33:12 +08:00
Yousong Zhou d8b30213aa lbagent: pidfile: remove ReadPidFile() 2019-11-19 11:06:29 +00:00
Yousong Zhou 727dc30994 lbagent: stop daemons: use agentutils.PidFile 2019-11-19 11:06:29 +00:00
Yousong Zhou 4f27f25fea lbagent: haproxy: use agentutils.PidFile 2019-11-19 11:06:29 +00:00
Yousong Zhou 89a26f9bb5 lbagent: gobetween: use agentutils.PidFile 2019-11-19 11:06:29 +00:00
Yousong Zhou 03c7c10db1 lbagent: telegraf: use agentutils.PidFile 2019-11-19 11:06:29 +00:00
Yousong Zhou d8be0a3844 lbagent: keepalived: use agentutils.PidFile 2019-11-19 11:06:29 +00:00
Yousong Zhou d2987f3196 lbagent: pidfile: add PidFile 2019-11-19 11:06:29 +00:00
Yousong Zhou 8ba5986d83 goimports: first run 2019-10-28 06:22:17 +00:00
Yousong Zhou 0058a8e74b lbagent: fix listing filter on manager_id 2019-10-18 06:06:10 +00:00
TangBin d2fa217cab mcclient module base 2019-09-07 22:56:47 +08:00
Yousong Zhou 173a316f3e lbagent: fix possible out of bound index access 2019-09-05 07:20:12 +00:00
Yousong Zhou c88a391caa lbagent: reuse mcclient client session 2019-09-05 07:20:12 +00:00
Rain 0a75f97d68 notify module in Go finished. 2019-08-16 18:54:49 +08:00
Yousong Zhou 22468ddebd lbagent: 改正agent参数变更校验 2019-08-07 09:16:02 +00:00
Yousong Zhou 694a91c24e lbagent: 改正unicast vrrp日志记录 2019-08-07 09:10:04 +00:00
Yousong Zhou 30f800bf36 lbclusters: 初次支持 2019-06-28 15:31:21 +00:00
Yousong Zhou 448365806c lbagent: 启动时全量取API数据
此变更之后,data/目录内容更多服务于调试作用
2019-06-26 11:58:00 +00:00
Yousong Zhou d3f4518967 lb: 添加PROXY协议支持
默认关闭(off),支持v1, v2, v2-ssl, v2-ssl-cn

可分别在listener, backend上控制

 - 若listener.send_proxy不为off,以listener.backend_proxy为准
 - 若listener.send_proxy为off,以backend.send_proxy为准
2019-05-30 13:06:07 +00:00
Zexi db0e303798 make 'go test ./...' pass 2019-04-15 19:54:46 +08:00
Qiu Jian 004d9b6f95 update copyright headers of all source 2019-03-29 14:47:48 +08:00
Zexi Li 076ad985cc move consts to apis 2019-03-20 12:08:15 +08:00