This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Constants do | |
@moduledoc """ | |
An alternative to use @constant_name value approach to defined reusable | |
constants in elixir. | |
This module offers an approach to define these in a | |
module that can be shared with other modules. They are implemented with | |
macros so they can be used in guards and matches | |
## Examples: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This installs a PXE boot server. | |
# | |
# It's based on https://help.ubuntu.com/community/DisklessUbuntuHowto. | |
# It's been used with ubuntu-10.10-server-amd64.iso and ubuntu-10.10-server-i386.iso. | |
# | |
# It requires two network cards. One for access to the outside world and one | |
# for a private network of PXE clients. I've choosen this setup to not cause problems | |
# with DHCP on the normal network. | |
# | |
# It also requires that you have a second partition mounted on /nfsroot. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 computers - 1 cpus: 29 minutes (rake spec) | |
5 computers - 13 cpus: 4 minutes (rake testbot:spec) | |
10 computers - 25 cpus: 2 minutes (rake testbot:spec) (about 60% cpu efficiency) | |
The testbot communication overhead is about 2-5 seconds per run. Fetching the code | |
and setting up the test environment takes a bit longer. The jobs are not being | |
perfectly balanced. There is still plenty of room for optimizations. |