Project

General

Profile

Bug #3237

fep-ha 网关 校验ip失效

Added by pengfei xu 11 months ago. Updated 11 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
11/30/2023
Due date:
12/04/2023
% Done:

100%

Estimated time:
Defect version:

Description

fep-ha配置双机时,会在semodel.db下配置union表,在ip1,ip2配置两个ip,
网关程序启动后,查找本地的ip如果查找到配置的ip就认为自己为几号机器,
查找到ip1为1号机器,查找到ip2为2号机器,用于做双机高可用;

之前校验ip的函数,linux下代码默认校验前8个ip, 但现场的机器可能有多网卡ip不止8个;这样程序找不到ip就认为自己为0号机器;
如果两台机器都找不到ip,高可用会失败;
(windows版没有此问题)

修改:
将8个改为128个;

影响程序:

网关下:
em_daq,libmqttiot,fep_gateway,水泵plc,火警plc


Related issues

Related to ISCS#FEP - Feature #3288: 水泵plc提升至1.1.2版本Resolved12/21/202301/04/2024

Actions

History

#1

Updated by pengfei xu 11 months ago

  • Status changed from New to In Progress
#2

Updated by pengfei xu 11 months ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100
#3

Updated by xiangyang li 11 months ago

  • Target version set to FEP_GATEWAY_V3.2.3
#4

Updated by pengfei xu 11 months ago

Also available in: Atom PDF