Hot answers tagged

38

TL;DR: Chaos Monkey was developed in 2010 at Netflix and released into wild in 2012 is part of the Simian Army, wildly popular among devoted followers. Built on principles of chaos engineering, the army increases resiliency to failure by injecting constant failure to the system. Concept Chaos Monkey was developed specifically for AWS where it will randomly ...


16

The term Phoenix Server was coined by a fellow of Martin Fowler, and all three terms described in short articles on Martin's bliki. Snowflake Server Phoenix Server Immutable Server The pros and cons of each such server are described in the articles. The main difference being in the way the server is managed. Servers exist to fulfill the role of a ...


10

Does the Docker engine abstract away the OS such that this configuration will run both apps? No, it does not. Docker uses containerisation as a core technology, which relies on the concept of sharing a kernel between containers. If one Docker image relies on a Windows kernel and another relies on a Linux kernel, you cannot run those two images on the same ...


9

As I was more thinking of a listing of advantages and drawbacks of each type, here's is my view (not exhaustive, it's the important operational ones in my opinion): Snowflakes Servers What they are: Systems with their specific configuration, no other servers in the data centre have the exact same parameters. They are usually manually administered. ...


9

Some additions to your own answer to this question ... Additional monkeys The article about "How chaos boosts performance" describes a few more of these monkeys, i.e.: 10-18 Monkey: finds configuration and run time problems in instances that serve customers in multiple regions. Chaos Kong: simulates an outage of an Amazon region. Remark: The same ...


5

Tuning the parameters you have identified will certainly have an effect - to degrade performance. For example, net.ipv4.tcp_window_scaling is an on or off option. Similarly, net.ipv4.tcp_sack is either on or off. Both default to a value of on on Linux and on all load balancers. Both of these were defined in RFC1323 which was published in order to give us the ...


4

In your approach I see a few scalability problems - I'm judging from a Google App Engine (GAE) context, where scalability is achieved via breakdown of the work in small tasks/work items and strict limitation of the response time for a task execution: you're duplicating some piece of functionality: both scripts need to parse the same page, leading to your ...


4

The "official" nginx image has a specific path where it looks for files. You can either copy a file into the image by creating a new image from it or mount your files into this path as a volume. To copy files, have a folder with your index.html and a Dockerfile that looks like this: FROM nginx COPY index.html /usr/share/nginx/html Then build a new ...


3

Use environment variables on your host that are read by your docker-compose.yml file. There are a couple ways to accomplish this. One way is to create a .env file on the host that contains your variables. Docker Compose will read these variables and apply them to your configuration. Alternatively, or in conjunction with a .env file, you can set ...


3

There are two parts to owning a domain. The registration, and the hosting of the DNS entries. As you are transferring the domain registration, AWS needs to know whose service do you want to use for managing your DNS host names and other settings. As a sensible default, select option (1) as this will keep everything managed with the current registrar / ...


3

One Server to rule them all, One Server to find them, One Server to bring them all and in the outage bind them You, Sauron, forged this One Server, in the Darkness of Mount Doom your Datacenter in a desire to rule All applications. Hopefully the Fellowship of Devops did unite to tell you: After a long fight, Frodo the Chaos Monkey has been able to melt ...


3

A good rule of thumb is to try and avoid using one bit of logical kit (be it a single VM or a single physical host) for more than one thing. If a physical server is going to be a VM host then that's all it should be. If a VM or a physical host is going to be a source code repository then that's all it should be etc. You can squeeze a bit extra out of your ...


2

All three are patterns of sorts, it isn't is a case of picking and choosing which to use in any specific circumstance but a case of knowing when to recognise the patterns that can help or hurt you. Snowflake Server A Snowflake Server is very much an anti-pattern representing the case when a server evolves in an uncontrolled manner to the point when it ...


2

Have you considered running this on AWS Lambda. It will probably forever free under free tier. There may be a couple of cents cost on API Gateway. Otherwise you can rent outdated servers for cents per month, but I am unsure what the best search term is for that. Finally, email addresses are free to generate and you can invest the time to set up a fresh AWS ...


2

What you want can be done. I've seen it done with GNU screen when Tmux wasn't around yet. However, I would not consider it good style to do it. There are better ways to do this. Daemons are simply "normal" processes being run in a particular way. That particular way usually means to fork "twice" (so that the parent/child relationship gets broken) and ...


2

There may be a significant speed difference between provisioning an environment and bringing up that environment. Especially when it comes to what you mentioned: IaaS and hybrid environments - those are VMs and bare metal servers - it may take many seconds/minutes for some of them to come up. So there may still be value in patching those environments, ...


2

This is a backdoor type script attempting to get information about global php configuration settings. $alphabet holds (in obfuscated form) the string "base64_decode". base64_decode is a function to unmangle the long base64 encoded $string value into this-: global auth_pass,$color,$default_action,$default_use_ajax,$default_charset,$sort; global $cwd,$os,$...


2

Yeah go nuts, you can run whatever you want in the container so long as the host supports virtualisation and can run the docker binary!


1

I'd make the invocation safe, use some try/catch on the invocation itself. That way, if the API is unreachable or HTTP error code is returned - the app can handle it and present the "error" to the user in a more UX-y way ;) Second thing, I'd make a returned data validator of some sort. For example data types, structure etc. Especially on key fields....


1

Based on my experience I'd suggest following scenario: First you should make your apps deployment process similar for all environments, so same tool and set of files will be responsible for this part. And only difference should goes to parameters. And second it's always a good practice to have kubernetes cluster per stage. Very common situation when your ...


1

running and copying files into the container: root@mordor:~# root@mordor:~# sudo docker run --name docker-nginx -p 80:80 -d nginx 29b4280504c2d46c10b8459de0844ba30bce0c1bc97b70521c3f812f29d17c27 root@mordor:~# root@mordor:~# docker cp index.html docker-nginx:/indx.html root@mordor:~# root@mordor:~# docker exec -it docker-nginx bash root@29b4280504c2:/# ...


1

Did you only try to reach localhost? Or even 0.0.0.0 or 127.0.0.1? Depending on the operating system, docker config and the internal networking setup, some problem can occurs to reach the docker network. You can inspect the container to get the network IP, maybe you can go there https://stackoverflow.com/a/20686101/2904965


1

created with: docker run -d -p 80:8080 -p 443:8443 jetty gives a start page as: Error 404 - Not Found. No context on this server matched or handled this request. Contexts known to this server are: Context Path Display Name Status LifeCycle __________________________________________________________________ [1]icon [2]Powered by Eclipse ...


1

I dont see downsides of using your Windows laptop. Its a matter of preference. If you know how to deal with Windows Environment variables, paths, EOL characters, you should be good. Many developers use Mac or Linux because they deal better with *unix like systems or because similar to the server they will run their apps. At the end of the day after you build ...


1

Check to see if the home directory for Jenkins was created? /home/jenkins


1

Yes, there are plenty of providers which make the first step redundant; i.e. they give you a working, optimized, running Linux box just by clicking a button, without you having to care how it works. Or they skip the need to have a "box" (VM) running at all. AWS, Azure, GCP, OpenShift etc. all do that, and do it well. In my neck of the woods, we use Vagrant ...


1

One could replace rewrite /(.*) /ipns/QmdpoFuwY/$1 break; with rewrite ^(.*[^/]) /ipns/QmdpoFuwY/$1 break; and try again. The issue was solved by inspecting the logs. If for example one navigated to /foo/ instead of /foo/ the log indicated: 2017/10/15 14:51:28 [error] 7#7: *1 "/etc/nginx/html/index.html/foo.html" is not found (20: Not a directory) It ...


1

As I see it, the basic problem you have is that you aren't looking at the Total Cost of Ownership (TCO). While you may eventually save on the hardware costs, this is costing you in man-hours - either yours or your employees - a cost which you also pay out of pocket until you begin generating revenue. The reason for this is this: Instead of using a ready to ...


Only top voted, non community-wiki answers of a minimum length are eligible