This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component | |
public class MyForkJoinPool { | |
private static final Logger LOGGER = LoggerFactory.getLogger(MyForkJoinPool.class); | |
private ForkJoinPool forkJoinPool; | |
private ForkJoinPool hardForkJoinPool; | |
@PostConstruct | |
public void init() { | |
this.forkJoinPool = new ForkJoinPool(2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ClustersHelper { | |
private ObjectMapper mapper = new ObjectMapper(); | |
private List<String> neighbours; | |
public List<String> getNeighbours() { | |
if (CollectionUtils.isNotEmpty(this.neighbours)) { | |
return this.neighbours; | |
} else { | |
this.neighbours = new ArrayList<>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
declare -a arr=("clt-guard-00" "clt-guard-01" "clt-guard-02" "clt-guard-08" "clt-guard-09" "clt-guard-10" "clt-guard-11" "clt-guard-12" "clt-guard-13") | |
for cluster in "${arr[@]}" | |
do | |
echo "PUT http://${cluster}:9290/collect/payment-methods/cache/overlapped/reload" | |
curl -X PUT \ | |
http://${cluster}:9290/collect/payment-methods/cache/overlapped/reload \ | |
-H 'Cache-Control: no-cache' \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64 | |
import json | |
import random | |
from datetime import date, timedelta | |
import requests | |
from locust import HttpLocust, TaskSet, task | |
events = [] |