I joined a network team recently and had a chance to work with Cisco ACI Nexus 9k series switches. Since my background is linux system administration I started to look into underlaying processes and found out that nginx and python are taking a lot of CPU resources. Python takes around 35% of CPU, nginx around 25%.
Nginx access log file showed me a lot of API requests, few request almost every second. Is that normal behaviour?
log file: 127.0.0.1 - - [30/Mar/2020:18:38:11 +0200] "GET /api//class/l1PhysIf.xml?&rsp-subtree=children&query-target-filter=and(anybit(l1PhysIf.usage,%22fabric%22),eq(l1PhysIf.switchingSt,%22enabled%22))&rsp-subtree-filter=eq(ethpmPhysIf.operSt,%22up%22)&rsp-subtree-include=count,required&query-target=subtree HTTP/1.1" 200 121 "-" "python-requests/1.2.3 CPython/2.7.2 Linux/3.14.62.0.0insieme-0"
127.0.0.1 - - [30/Mar/2020:18:38:11 +0200] "GET /api//mo/sys.xml?query-target=self HTTP/1.1" 200 1187 "-" "python-requests/1.2.3 CPython/2.7.2 Linux/3.14.62.0.0insieme-0"
127.0.0.1 - - [30/Mar/2020:18:38:11 +0200] "GET /api//mo/sys/isis/inst-default/dom-overlay-1.xml?query-target=self HTTP/1.1" 200 651 "-" "python-requests/1.2.3 CPython/2.7.2 Linux/3.14.62.0.0insieme-0"
127.0.0.1 - - [30/Mar/2020:18:38:12 +0200] "GET /api//mo/sys/topoctrl/porttrackfab.xml?query-target=self HTTP/1.1" 200 275 "-" "python-requests/1.2.3 CPython/2.7.2 Linux/3.14.62.0.0insieme-0"
127.0.0.1 - - [30/Mar/2020:18:38:12 +0200] "GET /api//mo/sys.xml?query-target=subtree&target-subtree-class=topoctrlPortTrackIf HTTP/1.1" 200 33234 "-" "python-requests/1.2.3 CPython/2.7.2 Linux/3.14.62.0.0insieme-0"
127.0.0.1 - - [30/Mar/2020:18:38:12 +0200] "GET /api//mo/sys.xml?query-target=subtree&target-subtree-class=l1PhysIf HTTP/1.1" 200 122830 "-" "python-requests/1.2.3 CPython/2.7.2 Linux/3.14.62.0.0insieme-0"
127.0.0.1 - - [30/Mar/2020:18:38:12 +0200] "GET /api//class/l1PhysIf.xml?&rsp-subtree=children&query-target-filter=and(anybit(l1PhysIf.usage,%22fabric%22),eq(l1PhysIf.switchingSt,%22enabled%22))&rsp-subtree-filter=eq(ethpmPhysIf.operSt,%22up%22)&rsp-subtree-include=count,required&query-target=subtree HTTP/1.1" 200 121 "-" "python-requests/1.2.3 CPython/2.7.2 Linux/3.14.62.0.0insieme-0"
127.0.0.1 - - [30/Mar/2020:18:38:12 +0200] "GET /api//mo/sys.xml?query-target=self HTTP/1.1" 200 1187 "-" "python-requests/1.2.3 CPython/2.7.2 Linux/3.14.62.0.0insieme-0"
127.0.0.1 - - [30/Mar/2020:18:38:12 +0200] "GET /api//mo/sys/isis/inst-default/dom-overlay-1.xml?query-target=self HTTP/1.1" 200 651 "-" "python-requests/1.2.3 CPython/2.7.2 Linux/3.14.62.0.0insieme-0"
127.0.0.1 - - [30/Mar/2020:18:38:14 +0200] "GET /api//mo/sys/topoctrl/porttrackfab.xml?query-target=self HTTP/1.1" 200 275 "-" "python-requests/1.2.3 CPython/2.7.2 Linux/3.14.62.0.0insieme-0"
127.0.0.1 - - [30/Mar/2020:18:38:14 +0200] "GET /api//mo/sys.xml?query-target=subtree&target-subtree-class=topoctrlPortTrackIf HTTP/1.1" 200 33234 "-" "python-requests/1.2.3 CPython/2.7.2 Linux/3.14.62.0.0insieme-0"
127.0.0.1 - - [30/Mar/2020:18:38:14 +0200] "GET /api//mo/sys.xml?query-target=subtree&target-subtree-class=l1PhysIf HTTP/1.1" 200 122830 "-" "python-requests/1.2.3 CPython/2.7.2 Linux/3.14.62.0.0insieme-0"
127.0.0.1 - - [30/Mar/2020:18:38:14 +0200] "GET /api//class/l1PhysIf.xml?&rsp-subtree=children&query-target-filter=and(anybit(l1PhysIf.usage,%22fabric%22),eq(l1PhysIf.switchingSt,%22enabled%22))&rsp-subtree-filter=eq(ethpmPhysIf.operSt,%22up%22)&rsp-subtree-include=count,required&query-target=subtree HTTP/1.1" 200 121 "-" "python-requests/1.2.3 CPython/2.7.2 Linux/3.14.62.0.0insieme-0"
No comments:
Post a Comment