Questions tagged [infrastructure]
393 questions
152
votes
18 answers
Why is it not advisable to have the database and web server on the same machine?
Listening to Scott Hanselman's interview with the Stack Overflow team (part 1 and 2), he was adamant that the SQL server and application server should be on separate machines. Is this just to make sure that if one server is compromised, both…

Tai Squared
- 12,273
- 24
- 72
- 82
50
votes
17 answers
Concrete symptoms of over-engineering
I have recently found myself in the position of explaining an (In-House) application I have written to two candidates my company likes to hire in order to assist in maintenance and adding minor features.
It is the first "production" application I…

Johannes Rudolph
- 35,298
- 14
- 114
- 172
49
votes
7 answers
Terraform - Delete all resources except one
I have a Terraform 0.11 project with 30-40 different resources. I would like to delete all of them except a few - and those few are logically related to each other.
I was looking for something close to terraform destroy --except=resource-id but that…

rath
- 3,655
- 1
- 40
- 53
44
votes
6 answers
Vagrant in production
I've been reading about Vagrant, and I find it quite useful for my development. I am currently managing a series of services (mail, web, LDAP, file sharing, etc.), and often one of these falls and needs a quick backup. Is it possible (and…

rkmax
- 17,633
- 23
- 91
- 176
33
votes
6 answers
Copy local file if exists, using ansible
I'm working in a project, and we use ansible to create a deploy a cluster of servers.
One of the tasks that I've to implement, is to copy a local file to the remote host, only if that file exists locally.
Now I'm trying to solve this problem using…

dirceusemighini
- 1,344
- 2
- 16
- 35
28
votes
2 answers
How to create a cloud formation template from an existing AWS environment?
I have an existing aws infrastructure with VPC's, subnets, instances,etc. If I need to build the same infrastructure again in future is there any way to create a cloud formation template from the existing infrastructure? Please help.
user11235831
27
votes
2 answers
What is the difference between architecture and infrastructure in software?
I just posted a question asking the difference between MapR and Cloudera's architecture and used "architecture" and "infrastructure" interchangeably. Is this appropriate?
To put this in context, MapR and Cloudera are distributions of Hadoop. They…

Matthew Moisen
- 16,701
- 27
- 128
- 231
25
votes
3 answers
How to pass Variables to Terraform modules via CLI or tfvars file?
(Please note: after receiving initial answers, this issue seems to not be just an issue with passing the variables, but with modularizing my configurations, note at the bottom where I hardcode the values yet the UI prompts me to provide the…

codewizard
- 1,029
- 1
- 13
- 22
21
votes
2 answers
How to show maintenance page during deployment?
I want to plan a schedule maintenance down time on one of my production asp.net website hosted on IIS windows server 2003.
I think this is the preferred behavior:
All request to http://www.x.com including www.x.com/asb/asd/ will be redirected to a…

ronaldwidha
- 1,345
- 2
- 12
- 24
20
votes
3 answers
How to print terraform variable values?
I am learning terraform. I want to print values of variables in "plan" stage. So I found how to do it. seems I am doing something wrong here....
in variables.tf:....
variable "VMCount" {
description = "How many VMs do you want to start with…

rajeev
- 1,275
- 7
- 27
- 45
17
votes
7 answers
How do I access a private Docker registry with a self signed certificate using Kubernetes?
Currently, running a private Docker registry (Artifactory) on an internal network that uses a self signed certificate for authentication.
When Kubernetes starts up a new node, it is unable to auth with the private Docker registry because this new…

jjNford
- 5,170
- 7
- 40
- 64
15
votes
2 answers
How to reduce the time it takes to refresh Terraform's state?
Most of the AWS infrastructure of the company I work for is described and managed using Terraform.
We have several different services including containerized back-ends and CDN'ed front-ends.
From Route53 domains and namespaces to ELBs, ECS and…

Jonathan Soifer
- 2,715
- 6
- 27
- 50
13
votes
13 answers
Architecture recommendation for load-balanced ASP.NET site
UPDATE 2009-05-21
I've been testing the #2 method of using a single network share. It is resulting in some issues with Windows Server 2003 under load:
http://support.microsoft.com/kb/810886
end update
I've received a proposal for an ASP.NET website…

frankadelic
- 20,543
- 37
- 111
- 164
11
votes
1 answer
Domain Driven Design - External Data API as Respository or Service
In a blog application developed using domain driven design a 'Post' entity has a related collection of tag entities.
On creating the post (e.g populating the object from the UI) i would like to call a third party API via REST which takes the…

sjb101
- 131
- 1
- 6
10
votes
6 answers
What's the best solution for file storage for a load-balanced ASP.NET app?
We have an ASP.NET file delivery app (internal users upload, external users download) and I'm wondering what the best approach is for distributing files so we don't have a single point of failure by only storing the app's files on one server. We…
user57223