Tag Archives: devops
How much does a server in AWS cost?

The quick answer is “it cannot be precisely determined”; AWS charges by the hour and keeping a server up the whole month incurs a lot of variable costs.

Nevertheless, for some usual LAMP installation with a single domain hosted by Amazon through Route 53, the lowest monthly cost one can get (using on-demand) is:

Fixed Part:

  • EC2 cost (t2.nano): $5 (approx)

  • EBS cost (8Gb default storage): $1 (approx)

  • Route 53 (1 domain): $0.5

Total: $6.5

Variable Part:

  • Route 53 queries: usually no more than a few cents, depending on the number of visits the site receives and the TTL values.

  • EC2 traffic: there are some free allowances, most likely less than $1

Continue Reading →

No comments yet Categories: AWS Tags: , ,
Variable-Size Directories

From time to time one may receive a request from QA team in line of:

For testing purposes, I need that /opt/test/xxx directory be limited to 10 Megabytes. This directory is used by this zzz application ran as user tester.

How could the directory size be limited in Linux? Is it even possible? – these are fair questions and the answer is yes. One needs to:

  1. Use the directory as a mount point for a size-limited storage device;

  2. Use the proper mount options to allow full access to the non-root user specified;

  3. Disable Selinux (easy) or allow that particular user to access data on mount points (complicated).

Let’s start with the beginning, the storage device. There are multiple options here:

  • A simple loop device (a regular file used as a file system);

  • A logical volume (LVM), assuming the disk setup is based on this technology and there is enough free space left to accomodate the new device;

  • Attaching a new storage device (e.g. in a Cloud environment like Amazon Web Services).

Continue Reading →

Chef Cheat Sheet: The Basics

The big data repository known as Chef Server is manipulated with a tool called knife. The general (simplified) syntax for this tool is:

$ knife category command item

The category can be one of: environment, client, node, data bag, cookbook, … The full list can be found here.

The command (usually) is one of create, list, show, edit or delete. There are more commands, though, depending on what is being requested through knife.

On the cheat sheat itself, let’s start with some classics:

Continue Reading →

Previous Page · Next Page