Last change
on this file since 3018 was
2995,
checked in by broder, 15 years ago
|
Revert "Bump dom0-min-mem so that hopefully we OOM kill less."
OOM conditions were more likely caused by the lack of swap.
This reverts commit r2994
|
-
Property svn:executable set to
*
|
File size:
726 bytes
|
Rev | Line | |
---|
[1261] | 1 | #!/usr/bin/perl -0n |
---|
| 2 | print <<'EOF'; |
---|
| 3 | <% |
---|
| 4 | from invirt.config import structs as cfg |
---|
| 5 | import os |
---|
[2972] | 6 | fqdn = os.uname()[1] |
---|
| 7 | internal_ip = None |
---|
| 8 | # This hack is necessary because cfg.hosts is an array rather than a dict. |
---|
| 9 | for host in cfg.hosts: |
---|
| 10 | if host.hostname == fqdn: |
---|
| 11 | internal_ip = host.internal_ip |
---|
| 12 | break |
---|
| 13 | |
---|
| 14 | class xend_template_exception(Exception): pass |
---|
| 15 | if internal_ip is None: |
---|
| 16 | raise xend_template_exception('Could not find an internal IP in the configuration for host %s' % fqdn) |
---|
[1261] | 17 | %> |
---|
| 18 | EOF |
---|
| 19 | |
---|
[2972] | 20 | s/^\#?\(xend-relocation-address ''\)/(xend-relocation-address '\${internal_ip}')/m or die; |
---|
[1261] | 21 | s/^\(xend-relocation-hosts-allow '[^']*'\)/(xend-relocation-hosts-allow '')/m or die; |
---|
[2995] | 22 | s/^\(dom0-min-mem [0-9]*\)/(dom0-min-mem 1536)/m or die; |
---|
[1261] | 23 | print; |
---|
Note: See
TracBrowser
for help on using the repository browser.