Scénario de test & Cas d'usage
Defining a server network including self-loops (Server_A -> Server_A) and isolated islands.
| 1 | |
| 2 | DATA mycas.server_logs; |
| 3 | INFILE DATALINES delimiter=','; |
| 4 | INPUT src_srv $ dest_srv $; |
| 5 | DATALINES; |
| 6 | SRV_A,SRV_A, SRV_A,SRV_B, SRV_B,SRV_C, SRV_C,SRV_A, SRV_D,SRV_E, SRV_Z,SRV_Z; |
| 7 | |
| 8 | RUN; |
| 9 |
| 1 | |
| 2 | PROC CAS; |
| 3 | network.core / selfLinks=TRUE links={name='server_logs', from='src_srv', to='dest_srv'} outNodes={name='server_resilience', replace=true}; |
| 4 | |
| 5 | RUN; |
| 6 | |
| 7 | QUIT; |
| 8 |
| 1 | |
| 2 | PROC CAS; |
| 3 | TABLE.fetch / TABLE='server_resilience'; |
| 4 | |
| 5 | RUN; |
| 6 | |
| 7 | QUIT; |
| 8 |
Server_A and Server_Z (which have self-links) should be processed correctly. Server_Z, despite being isolated from the main grid, has a link to itself, which might affect its core classification compared to a completely disconnected node if selfLinks=FALSE was used. The 3-node loop (A-B-C) should form a higher core.