Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Improve DPM and NCM performance #734

Merged
merged 76 commits into from
Feb 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
04cbb1e
Update router manager api
DavidLiu506 Jun 29, 2021
4c100e5
Update code
DavidLiu506 Jun 29, 2021
e38bcf9
Update code
DavidLiu506 Jun 30, 2021
067a988
Update router manager
DavidLiu506 Jul 1, 2021
dd5dafd
Update router manager
DavidLiu506 Jul 1, 2021
aa76562
Merge router manager service api code
DavidLiu506 Jul 2, 2021
8ae37db
Fix getVpcRouteTables
DavidLiu506 Jul 2, 2021
f0462ae
Fix getVpcRouteTable
DavidLiu506 Jul 2, 2021
976883f
Update RouterController
DavidLiu506 Jul 6, 2021
ef7a2d2
Update code
DavidLiu506 Jul 6, 2021
670dcc6
Update code
DavidLiu506 Jun 29, 2021
59a65f0
Update code
DavidLiu506 Jun 30, 2021
1178f61
pull alcor code
DavidLiu506 Jul 9, 2021
5a98d10
Merge branch 'futurewei-cloud:master' into master
DavidLiu506 Jul 21, 2021
e4e0792
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
DavidLiu506 Aug 13, 2021
ae15be0
Merge branch 'futurewei-cloud:master' into master
DavidLiu506 Aug 15, 2021
9c88b19
Merge branch 'futurewei-cloud:master' into master
DavidLiu506 Aug 21, 2021
9be2bb9
Merge branch 'futurewei-cloud:master' into master
DavidLiu506 Sep 13, 2021
733872a
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
DavidLiu506 Oct 19, 2021
b3154ae
Merge branch 'futurewei-cloud:master' into master
DavidLiu506 Oct 21, 2021
e2bed17
Merge branch 'master' of https://github.com/DavidLiu506/alcor
DavidLiu506 Oct 21, 2021
7c5013e
Merge branch 'futurewei-cloud:master' into master
DavidLiu506 Oct 23, 2021
ac7acf8
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
DavidLiu506 Oct 28, 2021
bcc0716
Merge branch 'futurewei-cloud:master' into master
DavidLiu506 Nov 3, 2021
c499d9c
Merge branch 'futurewei-cloud:master' into master
DavidLiu506 Nov 30, 2021
329e216
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
DavidLiu506 Dec 9, 2021
43435bd
Merge branch 'futurewei-cloud:master' into master
DavidLiu506 Dec 11, 2021
9b51767
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
DavidLiu506 Dec 13, 2021
2f68edb
Merge branch 'futurewei-cloud:master' into master
DavidLiu506 Dec 13, 2021
a6b1122
Merge branch 'master' of https://github.com/DavidLiu506/alcor
DavidLiu506 Dec 13, 2021
6cbba8d
Improve DPM and NCM performance
DavidLiu506 Jan 14, 2022
c63dc7e
Update code
DavidLiu506 Jan 14, 2022
89b583c
Update code
DavidLiu506 Jan 14, 2022
0d40134
Update code
DavidLiu506 Jan 14, 2022
3b78900
Update code
DavidLiu506 Jan 15, 2022
29b7312
Update code
DavidLiu506 Jan 17, 2022
82627c0
Update code
DavidLiu506 Jan 17, 2022
cb8268d
Update code
DavidLiu506 Jan 18, 2022
57a3514
Update code
DavidLiu506 Jan 18, 2022
a9cc406
Update code
DavidLiu506 Jan 18, 2022
38437d7
Update code
DavidLiu506 Jan 18, 2022
fb263fe
Update code
DavidLiu506 Jan 18, 2022
fc63681
Update code
DavidLiu506 Jan 18, 2022
95479e0
Update code
DavidLiu506 Jan 18, 2022
2b9e7b9
Update code
DavidLiu506 Jan 18, 2022
57ce042
Update code
DavidLiu506 Jan 18, 2022
6d9828e
Update code
DavidLiu506 Jan 18, 2022
e87d62f
Update code
DavidLiu506 Jan 18, 2022
1dbe0e8
Update code
DavidLiu506 Jan 18, 2022
643a6ab
Update code
DavidLiu506 Jan 18, 2022
c7e57f1
Update code
DavidLiu506 Jan 19, 2022
3692337
Update code
DavidLiu506 Jan 19, 2022
a76cdd0
Update code
DavidLiu506 Jan 19, 2022
4302c5b
Update code
DavidLiu506 Jan 19, 2022
5d60830
Update code
DavidLiu506 Jan 19, 2022
1453787
Update code
DavidLiu506 Jan 19, 2022
c5aa478
Update code
DavidLiu506 Jan 19, 2022
fb21bfc
Update code
DavidLiu506 Jan 19, 2022
32b9d26
Update code
DavidLiu506 Jan 19, 2022
ba05238
Update code
DavidLiu506 Jan 19, 2022
8b46f3d
Update code
DavidLiu506 Jan 19, 2022
a9ac315
Update code
DavidLiu506 Jan 19, 2022
0f93f06
Update code
DavidLiu506 Jan 19, 2022
0ccc293
Update code
DavidLiu506 Jan 20, 2022
defa12e
Update code
DavidLiu506 Jan 20, 2022
afcc032
Update code
DavidLiu506 Jan 20, 2022
3d350a7
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
DavidLiu506 Jan 20, 2022
ecb0332
Update code
DavidLiu506 Jan 20, 2022
dff6e4f
Update code
DavidLiu506 Jan 20, 2022
1bf4df8
Update code
DavidLiu506 Jan 25, 2022
3dbd205
Update code
DavidLiu506 Jan 25, 2022
c0a19ee
Update code
DavidLiu506 Jan 26, 2022
97e513a
Update code
DavidLiu506 Jan 26, 2022
a9d930e
Update code
DavidLiu506 Jan 26, 2022
5b8dec8
Update code
DavidLiu506 Jan 26, 2022
91a3790
Update code
DavidLiu506 Jan 31, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions kubernetes/db/ignite/ignite_alcor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,16 @@
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
apiVersion: v1
kind: Namespace
metadata:
name: ignite-alcor
roleRef:
kind: ClusterRole
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: ignite-alcor
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: ignite-alcor
namespace: ignite-alcor
namespace: ignite-alcor
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand All @@ -41,16 +39,18 @@ rules:
- list
- watch
---
apiVersion: v1
kind: Namespace
xieus marked this conversation as resolved.
Show resolved Hide resolved
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ignite-alcor
---
apiVersion: v1
kind: ServiceAccount
metadata:
roleRef:
kind: ClusterRole
name: ignite-alcor
namespace: ignite-alcor
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: ignite-alcor
namespace: ignite-alcor
---
apiVersion: v1
kind: Service
Expand Down
35 changes: 19 additions & 16 deletions kubernetes/db/ignite/ignite_alcor_ip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,17 @@
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1

apiVersion: v1
kind: Namespace
metadata:
name: ignite-alcor-ip
roleRef:
kind: ClusterRole
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: ignite-alcor-ip
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: ignite-alcor-ip
namespace: ignite-alcor-ip
namespace: ignite-alcor-ip
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand All @@ -41,16 +40,18 @@ rules:
- list
- watch
---
apiVersion: v1
kind: Namespace
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ignite-alcor-ip
---
apiVersion: v1
kind: ServiceAccount
metadata:
roleRef:
kind: ClusterRole
name: ignite-alcor-ip
namespace: ignite-alcor-ip
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: ignite-alcor-ip
namespace: ignite-alcor-ip
---
apiVersion: v1
kind: Service
Expand All @@ -75,6 +76,8 @@ spec:
targetPort: 10900
selector:
app: ignite-alcor-ip
status:
loadBalancer: {}
---
apiVersion: apps/v1
kind: StatefulSet
Expand Down
34 changes: 18 additions & 16 deletions kubernetes/db/ignite/ignite_alcor_mac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,16 @@
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
apiVersion: v1
kind: Namespace
metadata:
name: ignite-alcor-mac
roleRef:
kind: ClusterRole
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: ignite-alcor-mac
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: ignite-alcor-mac
namespace: ignite-alcor-mac
namespace: ignite-alcor-mac
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand All @@ -41,16 +39,18 @@ rules:
- list
- watch
---
apiVersion: v1
kind: Namespace
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ignite-alcor-mac
---
apiVersion: v1
kind: ServiceAccount
metadata:
roleRef:
kind: ClusterRole
name: ignite-alcor-mac
namespace: ignite-alcor-mac
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: ignite-alcor-mac
namespace: ignite-alcor-mac
---
apiVersion: v1
kind: Service
Expand All @@ -75,6 +75,8 @@ spec:
targetPort: 10900
selector:
app: ignite-alcor-mac
status:
loadBalancer: {}
---
apiVersion: apps/v1
kind: StatefulSet
Expand Down
33 changes: 16 additions & 17 deletions kubernetes/db/ignite/ignite_alcor_port.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,16 @@
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
apiVersion: v1
kind: Namespace
metadata:
name: ignite-alcor-port
roleRef:
kind: ClusterRole
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: ignite-alcor-port
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: ignite-alcor-port
namespace: ignite-alcor-port
namespace: ignite-alcor-port
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand All @@ -41,16 +38,18 @@ rules:
- list
- watch
---
apiVersion: v1
kind: Namespace
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ignite-alcor-port
---
apiVersion: v1
kind: ServiceAccount
metadata:
roleRef:
kind: ClusterRole
name: ignite-alcor-port
namespace: ignite-alcor-port
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: ignite-alcor-port
namespace: ignite-alcor-port
---
apiVersion: v1
kind: Service
Expand Down
12 changes: 10 additions & 2 deletions kubernetes/db/ignite/ignite_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,16 @@ Copyright(c) 2020 Futurewei Cloud
Enables Kubernetes IP finder and setting custom namespace and service names.
-->
<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.TcpDiscoveryKubernetesIpFinder">
<property name="serviceName" value="ignite-alcor-service"/>
<property name="namespace" value="ignite-alcor"/>
<property name="ipFinder">
<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.TcpDiscoveryKubernetesIpFinder">
<constructor-arg>
<bean class="org.apache.ignite.kubernetes.configuration.KubernetesConnectionConfiguration">
<property name="serviceName" value="ignite-alcor-service"/>
<property name="namespace" value="ignite-alcor"/>
</bean>
</constructor-arg>
xieus marked this conversation as resolved.
Show resolved Hide resolved
</bean>
</property>
</bean>
</property>
</bean>
Expand Down
12 changes: 10 additions & 2 deletions kubernetes/db/ignite/ignite_ip_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,16 @@ Copyright(c) 2020 Futurewei Cloud
Enables Kubernetes IP finder and setting custom namespace and service names.
-->
<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.TcpDiscoveryKubernetesIpFinder">
<property name="serviceName" value="ignite-alcor-ip-service"/>
<property name="namespace" value="ignite-alcor-ip"/>
<property name="ipFinder">
<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.TcpDiscoveryKubernetesIpFinder">
<constructor-arg>
<bean class="org.apache.ignite.kubernetes.configuration.KubernetesConnectionConfiguration">
<property name="serviceName" value="ignite-alcor-ip-service"/>
<property name="namespace" value="ignite-alcor-ip"/>
</bean>
</constructor-arg>
</bean>
</property>
</bean>
</property>
</bean>
Expand Down
12 changes: 10 additions & 2 deletions kubernetes/db/ignite/ignite_mac_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,16 @@ Copyright(c) 2020 Futurewei Cloud
Enables Kubernetes IP finder and setting custom namespace and service names.
-->
<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.TcpDiscoveryKubernetesIpFinder">
<property name="serviceName" value="ignite-alcor-mac-service"/>
<property name="namespace" value="ignite-alcor-mac"/>
<property name="ipFinder">
<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.TcpDiscoveryKubernetesIpFinder">
<constructor-arg>
<bean class="org.apache.ignite.kubernetes.configuration.KubernetesConnectionConfiguration">
<property name="serviceName" value="ignite-alcor-mac-service"/>
<property name="namespace" value="ignite-alcor-mac"/>
</bean>
</constructor-arg>
</bean>
</property>
</bean>
</property>
</bean>
Expand Down
12 changes: 10 additions & 2 deletions kubernetes/db/ignite/ignite_port_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,16 @@ Copyright(c) 2020 Futurewei Cloud
Enables Kubernetes IP finder and setting custom namespace and service names.
-->
<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.TcpDiscoveryKubernetesIpFinder">
<property name="serviceName" value="ignite-alcor-port-service"/>
<property name="namespace" value="ignite-alcor-port"/>
<property name="ipFinder">
<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.TcpDiscoveryKubernetesIpFinder">
<constructor-arg>
<bean class="org.apache.ignite.kubernetes.configuration.KubernetesConnectionConfiguration">
<property name="serviceName" value="ignite-alcor-port-service"/>
<property name="namespace" value="ignite-alcor-port"/>
</bean>
</constructor-arg>
</bean>
</property>
</bean>
</property>
</bean>
Expand Down
38 changes: 38 additions & 0 deletions kubernetes/services/api-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,41 @@
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

apiVersion: v1
kind: ServiceAccount
metadata:
name: alcor-account
namespace: default
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: alcor-servcie
namespace: alcor-servcie
rules:
- apiGroups:
- ""
resources: # Here are resources you can access
- pods
- endpoints
verbs: # That is what you can do with them
- get
- list
- watch
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: alcor-servcie
roleRef:
kind: ClusterRole
name: alcor-servcie
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: alcor-account
namespace: default
---
apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -22,6 +57,8 @@ data:
logging.level.org.springframework.web=DEBUG
logging.level.org.springframework.cloud=DEBUG
logging.level.com.github.tomakehurst.wiremock=TRACE
ignite.kubeNamespace=ignite-alcor
ignite.kubeServiceName=ignite-alcor-service
ignite.host=ignite-alcor-service.ignite-alcor.svc.cluster.local
ignite.port=10800
ignite.thin.client.enable=true
Expand Down Expand Up @@ -84,6 +121,7 @@ spec:
labels:
app: apimanager
spec:
serviceAccountName: alcor-account
volumes:
- name: api-volume
configMap:
Expand Down
Loading