Criteria for Determining How Many AWS VPCs to Use for Apps? Inter-VPC vs. Intra-VPC Traffic

I can’t seem to find any specific guidance on what constitutes good practice with regards to the use of one VPC vs. many for application hosting. This link touches on the subject, but is quite old and doesn’t really provide an answer. I’m currently working on a migration of a traditionally hosted environment that consists…

Removing a target database from a SqlShardMap in order to a scheduled job stop running in the removed target

I have a ElasticJobAgent pointing to an ElasticJobDatabase, the ElasticJobDatabase use SqlShardMap to run jobs against all the databases that belong to that SqlShardMap, the problem is the following: When I remove a database from the SqlShardMap the ElasticJobDatabase and Agent still running jobs on that removed target database. My question is how to stop…

Why does this script not reliably log the latest file?

This script fails sometimes and succeeds sometimes (a very annoying situation): #!/bin/bash set -Eeuxo pipefail test_dir=”$(mktemp -d)” touch “$test_dir/file”{001..312} latest_file=”$(find $test_dir -type f | sort -r | head -n1)” echo $latest_file When it succeeds, it logs something like this: ++ mktemp -d + test_dir=/tmp/tmp.yWelcpBYB7 + touch /tmp/tmp.yWelcpBYB7/file001 /tmp/tmp.yWelcpBYB7/file002 … /tmp/tmp.yWelcpBYB7/file312 ++ find /tmp/tmp.yWelcpBYB7 -type f…

Creating multiple Local Persistent Volumes on the same node with the same path unexceptedly works

While doing setup testing on a 2 worker node Kubernetes cluster using kind (https://kind.sigs.k8s.io/docs/user/quick-start), i came up with this and cannot find info elsewhere. I’ve created a folder on all of my worker nodes in /var/testpv and created the following PV: apiVersion: v1 kind: PersistentVolume metadata: name: pg-pv spec: capacity: storage: 10Gi volumeMode: Filesystem accessModes:…