This file contains hidden or 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
| kubectl get pods -n <namespace> --selector=service=<service or app name> --field-selector=status.phase=Running -o custom-columns=name:metadata.name |xargs -I{} kubectl exec -it -n <>namespace {} -- /bin/bash -c "ls /" |
This file contains hidden or 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 | |
| TOTAL_DOCS=100000 | |
| echo "Indexing $TOTAL_DOCS documents" | |
| ID=121212 | |
| START_TIME=`date +"%s"` | |
| for ((i=1; i<=$TOTAL_DOCS; i++)) | |
| do |
This file contains hidden or 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 | |
| TOTAL_FETCH=50000 | |
| echo "Getting results for $TOTAL_FETCH software entities" | |
| ID=121212 | |
| START_TIME=`date +"%s"` | |
| BATCH_SIZE=200 | |
| BATCH_COUNT=$(($TOTAL_FETCH/$BATCH_SIZE)) | |
| echo "">op.txt | |
| for ((i=0; i<$BATCH_COUNT; i++)) |
This file contains hidden or 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 | |
| echo "Generating Inserts" | |
| echo "" > inserts.cql | |
| for i in {1..1000} | |
| do | |
| INSERT_QUERY="insert into table(col1,col2) values(${i},$(($i*$RANDOM)));" | |
| echo $INSERT_QUERY >> inserts.cql | |
| done |