Questions tagged [infrastructure]

333 questions
136
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…
49
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
  • 34,073
  • 12
  • 105
  • 164
40
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
  • 15,852
  • 22
  • 82
  • 170
30
votes
5 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,272
  • 2
  • 15
  • 35
21
votes
3 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
  • 2,725
  • 1
  • 30
  • 48
20
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,325
  • 1
  • 12
  • 24
18
votes
1 answer

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
  • 12,418
  • 23
  • 90
  • 195
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
  • 19,333
  • 31
  • 105
  • 161
11
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
10
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…
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
10
votes
4 answers

Ansible windows client or host with Ansible linux server? Possible?

I am using Ansible for some infrastructure management problem for my project. I achieved this task using a Linux client like say to copy a bin file from Ansible server and install it on a client machine. This involves tasks in my playbooks using…
Googler
  • 525
  • 3
  • 12
  • 29
9
votes
1 answer

Writing a 'Chaos Monkey' to increase resilience

Apologies for the rather open nature of the question, but I think its a very valuable area of discussion. Following the recent AWS outage and the huge number of horror stories that followed it, I was really impressed by the Chaos Monkey 'technique'…
isNaN1247
  • 17,115
  • 12
  • 66
  • 114
9
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
  • 111
  • 1
  • 5
8
votes
2 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…
1
2 3
22 23