Commit Graph

59 Commits

Author SHA1 Message Date
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
邱剑
7d1d851244 Merge pull request #1255 in YUNIONIO/onecloud from ~WANYAOQI/onecloud:feature/fix-package-dependence to release/2.8.0
* commit '53ece34f3b424d4430b1198ea06a66456a4a9a12':
  merge const pkg from cloudcommon to compute
  fix package dependence
2019-03-18 17:18:35 +08:00
Yousong Zhou
1b879d1b24 lbagent: try using unicast vrrp 2019-03-15 12:11:22 +00:00
Yousong Zhou
33f568717b lbagent: report ip, ha_state, version 2019-03-15 12:11:22 +00:00
Yousong Zhou
41bcd59cc1 lbagent: always reload on startup
Instead of at the next resync tick
2019-03-15 12:11:22 +00:00
Yousong Zhou
fdb0571c5c lbagent: making agent params with reflect 2019-03-15 12:11:22 +00:00
wanyaoqi
e0ee2b8c59 fix package dependence 2019-03-15 11:45:56 +08:00
Yousong Zhou
4b4c86b883 lbagent: fix corpus versioning 2019-03-12 03:39:20 +00:00
Yousong Zhou
8016a27abf lbagent: telegraf: add params influx_db_output_unsafe_ssl 2019-03-12 03:39:20 +00:00
Yousong Zhou
c6e4fff0d0 lb: 不记录来自lbagent的GET查询请求
要求

 - _orig=lbagent
 - userCred.HasSystemAdminPrivilege()
2019-03-12 03:39:20 +00:00
Yousong Zhou
4adae9bd88 lbagent: fix typo in log 2019-01-15 08:00:44 +00:00
Yousong Zhou
10a388e6df lbagent: use encoding/json for {,de}serialization 2019-01-15 08:00:44 +00:00
Yousong Zhou
082cff6acd lbagent: 改正cloudcommon.CommonOptions使用 2019-01-15 08:00:44 +00:00
Yousong Zhou
67a9a1921d lbagent: 改正isempty()使用 2019-01-15 08:00:44 +00:00
周有松
65dd335b4d Automatic merge from release/2.3.0 -> release/2.4.0
* commit 'ce995c0582e056ac18447985eef57c622b261fc6':
  lbagent: 增加haproxy reload健壮性
2018-12-29 20:19:47 +08:00
Yousong Zhou
9251c6b45b lbagent: 增加haproxy reload健壮性
HAProxy小概率出现stats socket和stats url未监听到的情况,怀疑是00-haproxy.cfg
被提前删除造成,导致后续的-x haproxy.sock配置重加载失败

健壮性增强,reload失败时,杀掉旧进程pid,重新启动新的haproxy
2018-12-29 08:43:36 +00:00
wanyaoqi
742a67b0f8 client session add context 2018-12-25 13:33:33 +08:00
Yousong Zhou
603e1be98c treewide: 重新组织cloudcommon options
将cloudcommon.Options从cloudcommon.DBOptions中拿出来,并改名为CommonOptions
2018-12-23 15:31:11 +00:00
邱剑
f26634c6ee Automatic merge from release/2.3.0 -> release/2.4.0
* commit '516c39a6144b5558505fa6669d70a8cf4ad3b496':
  loadbalancers: 使用ApplyModelFilters()
  validators: 添加ApplyModelFilters()
  loadbalancerlisteners: 改正update enable_http2
  lbagent: 仅处理manager_id为空的API对象
  gofmt
2018-12-12 21:14:07 +08:00
Yousong Zhou
4f107ee02c lbagent: 仅处理manager_id为空的API对象
当前还没有manager_id字段,先留出
2018-12-12 08:47:04 +00:00
邱剑
2f325530ef Automatic merge from release/2.3.0 -> release/2.4.0
* commit 'ec71bc2fe99668a49fa2cc1b92413798cf6bec4a':
  loadbalancers: 增加rps限速支持
  loadbalancers: 清理监听选项名
  loadbalancers: 移除Bandwidth字段
2018-12-12 15:32:47 +08:00
Yousong Zhou
5564929e34 loadbalancers: 增加rps限速支持 2018-12-12 03:44:30 +00:00
Qiu Jian
965e84ea36 update 2018-12-07 02:57:58 +08:00
Yousong Zhou
9a73d5c095 lbagent: list with details=true explicitly
Previously we depend on .Params() of mcclient to set it for us.  Set it
explicitly just in case
2018-11-08 15:37:48 +00:00