3 ms·
I wonder if this could have been avoided by using different subdomains. For example, instead of db1.cluster, what if it were named db-production.cluster. Would
by nickjj 10y ago
I wonder if this could have been avoided by using different subdomains.
For example, instead of db1.cluster, what if it were named db-production.cluster. Would it have still happened? Probably not.
I could totally see myself accidentally typing db1 out of muscle memory, but there's no way to accidentally type db-production.
- nacs 10y ago> there's no way to accidentally type db-production That's what auto-complete is for. rm -rf db<tab><tab><enter>
- why-el 10y agoThat's what we do. `service-1-dev` and `service-1-prod`. Can't ssh to `prod` unless you are a really really qualified devops.
- wolfgang42 10y agoThey already do this. Both db1.cluster and db2.cluster are production machines; their staging equivalents are db1.staging and db2.staging. The confusion was between two production instances--one of which had the latest data, and the other was replicating. The intent was to delete the partially replicated data but the command was run on the current master database server instead.