Algorithm 1 Algorithm for fuzzy-based microservice computing resource scaling (FMCRS) | |
Initialization: | |
; ; ; ; Gaussian membership function of fuzzy interference system with standard deviation σ and mean value μ; ; . |
|
1: | ForDo |
2: | ForDo |
3: | Calculate Gaussian membership values according to (2) and (3), respectively; |
4: | Optimize Gaussian membership function according to (5), (6), and (7), respectively; |
5: | according to (4); |
6: | if then |
7: | Run horizontal scaling; |
8: | else |
9: | Calculate the priority of microservice according to (8); |
10: | Run vertical scaling; |
11: | end if |
12: | end for |
13: | end for |
Output: Microservices with the scaled computing resources. |