Commit 82f538f7 authored by wutu's avatar wutu

修复vxlan无法发大流量的严重bug

parent 45845869
Pipeline #99 failed with stages
......@@ -30,7 +30,7 @@ public class BisheMultiNodeTests {
ArrayList<SeparatedClusterConfig> clusterConfigs = new ArrayList<>();
SeparatedClusterConfig separatedClusterConfig = new SeparatedClusterConfig();
// TODO: 这个ID应该是从借口获取的
separatedClusterConfig.setEdgeNodeId("192.168.31.52:8081");
separatedClusterConfig.setEdgeNodeId("192.168.31.16:8081");
ClusterConfig clusterConfig = new ClusterConfig();
clusterConfig.setId(11111l);
clusterConfig.setOwner("joliu");
......@@ -59,7 +59,7 @@ public class BisheMultiNodeTests {
clusterConfig.setDockers(cds);
NetworkTopology topo = new NetworkTopology();
topo.setAppNames(new String[]{"APP1", "APP2", "br:ovs1", "br:remote:ovs2:192.168.31.50"});
topo.setAppNames(new String[]{"APP1", "APP2", "br:ovs1", "br:remote:ovs2:192.168.31.220"});
// 这个参数好像没啥用
topo.setTopologyId(11);
topo.setTopology(new int[][]{{0,0,0,0},{0,0,0,0},{1,1,0,0},{0,0,1,0}});
......@@ -70,7 +70,7 @@ public class BisheMultiNodeTests {
// 构建第二个节点
SeparatedClusterConfig separatedClusterConfig1 = new SeparatedClusterConfig();
// TODO: 这个ID应该是从借口获取的
separatedClusterConfig1.setEdgeNodeId("192.168.31.50:8081");
separatedClusterConfig1.setEdgeNodeId("192.168.31.220:8081");
ClusterConfig clusterConfig1 = new ClusterConfig();
clusterConfig1.setId(11111l);
clusterConfig1.setOwner("joliu");
......@@ -99,7 +99,7 @@ public class BisheMultiNodeTests {
clusterConfig1.setDockers(cds1);
NetworkTopology topo1 = new NetworkTopology();
topo1.setAppNames(new String[]{"APP3", "APP4", "br:ovs2", "br:remote:ovs1:192.168.31.52"});
topo1.setAppNames(new String[]{"APP3", "APP4", "br:ovs2", "br:remote:ovs1:192.168.31.16"});
// 这个参数好像没啥用
topo1.setTopologyId(11);
topo1.setTopology(new int[][]{{0,0,0,0},{0,0,0,0},{1,1,0,0},{0,0,1,0}});
......
......@@ -24,6 +24,10 @@ public class OvsDockerUtilsImpl implements OvsDockerUtils {
if(res.contains("Error")) {
throw new RuntimeException(res);
}
// 这里需要给容器设置mtu
String mtuCmd = "docker exec " + containerId + " ifconfig eth1 mtu 1450";
String mtuRes = linuxCtlUtils.runCmd(mtuCmd);
System.out.println(mtuRes);
return res;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment