1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
2 <!-- This document is licensed using the GNU Public License version 2 -->
5 <link rel=
"stylesheet" href=
"../mrtg-td/slides.css" type=
"text/css">
6 <meta http-equiv=
"Content-Type" content=
"text/html; charset=iso-8859-1">
7 <meta name=
"Language" content=
"en">
8 <meta name=
"Author" content=
"Petter Reinholdtsen">
9 <title>Writing enterprise ready software
</title>
13 <h1>Writing enterprise ready software
</h1>
17 <p><tt><a href=
"http://www.hungry.com/~pere/mypapers/enterprise-software/enterprise-software.html">http://www.hungry.com/~pere/mypapers/enterprise-software/enterprise-software.html
</a></tt></p>
19 <div class=
"presenter">Petter Reinholdtsen
21 <br>Debconf5, Helsinki
2005-
06-
12</div>
27 <li>clues for the clueless
28 <li>multilevel configuration
32 <h2>We are in trouble
</h2>
34 <p>Some things are possible for
1 to
10 machines, and impossible with
35 500 machines. What do you do when you break the ssh configuration
38 <h2>Trouble moving
</h2>
40 <p>With
60000 users and about
150 home directory file servers
41 available from
12000 machines, users move from file server to file
42 server. This break several applications when the path to the users
43 home directory changes. (example: /mn/hegel/u1/pere to
44 /usit/saruman/u1/pere).
</p>
47 Moving a user from one user disk to another break mozilla and
48 openoffice configuration. - not using relative paths
51 <h2>Downgrade trouble
</h2>
53 <p>With
900 linux machines with common user database and home
54 directories while running different versions of programs, users will
55 run several versions of a program with the same configuration
58 <!-- Trying to run with KDE 2 and 3 on different machines messes up
59 the configuration - not handling downgrades
61 - handle up/downgrades - people will use different versions on
62 different machines, with common home directories
66 <h2>Some old trouble
</h2>
69 <p>Some users lost the source of their production systems, and need
70 the binaries to keep working for
10-
15 years.
</p>
72 <!-- 15 year old binaries should keep working. The source is lost
73 long time ago, and the program is still used in production. -->
75 <h2>No room for more trouble
</h2>
77 <p>When the file system for the PostgreSQL database in production goes
78 full, one do not want to kick out
30000 users to take down the
79 database and resize the file system.
</p>
83 <p>RAID is only only useful until the last redundancy disk is lost.
85 <p>Automatic RAID status systems need API or command line tools to
86 extract the status. Not like afacli, which go into interactive mode
87 when an error is detected.
89 <h2>Installation trouble
</h2>
91 <p>Trying to compile/install software on Irix, Solaris, Linux, HP-UX,
92 Tru64 Unix, MacOSX and AIX when the process require a sysadmin to sit
93 around to answer questions, change CDs, or insert licenses is both
94 painful and prone to errors.
</p>
96 <h2>Network trouble
</h2>
98 <p>Trying to get some network server to work when it require to use
99 some given port range, which is already taken by some other service
100 and blocked in the router -- or try to get the corporate network
101 gatekeeper to open up the firewall
</p>
103 <h2>Version trouble
</h2>
105 <p>Given three tcl or php applications, is there one version of TCL or
106 PHP usable with all of these?
108 <h2>Usability trouble
</h2>
110 <p>When starting a program from the menu, where does it go if nothing
111 appear on the screen?
113 <p>Do users always read their ~/.xsession-error file?
116 <h2>Clues for the clueless
</h2>
120 <li>at least three levels of config files; package defaults, site
121 defaults and host defaults
123 <li>never ask questions at compile time. when compiling automatically
124 for
10 platforms, a sysadmin do not want to sit down and answer
127 <li>split installation tasks in two, one for installation, and one for
128 the operations needing root access. (build / configuration as well)
130 <li>make sure the software can be installed anywhere (location
131 independent), avoid hard coding paths into the binaries.
133 <li>make the source available to make it possible to fix problems on
134 site, and to use it on different platforms (os/hw) in the future
142 <li>Make paths into users home directories relative to ~user/, as users
143 will move from disk to disk, or copy their home directory from site
144 to site. Always convert paths when saving config files.
146 <li>depend on as few libraries as possible, as it is a pain to get every
147 extra library in place
149 <li>use well known libraries instead of making your own implementation.
150 reduces the security risk.
152 <li>make sure libraries, and programming languages are backwards
155 <li>use a well known license. it is a pain to evaluate every new
160 <h2>Make it easier for everyone
</h2>
164 <li>when distributing source, do not use vendor specific compiler
165 features. It will not work with the other vendors compilers used to
168 <li>write portable code, make sure it works the same on all platforms.
170 <li>make the software work out of the box (require as little
171 configuration as possible).
173 <li>avoid resource leaks (memory, shared memory, locks, file
174 descriptors, X server resources, etc). Restarting a long-running
175 server is not always an option.
177 <li>system services should send messages to syslog. always log why when
178 crashing. always log problems and errors.
186 <li>reuse configuration when possible. ktouch have its own x layout setting.
187 better to fetch the current one from X like xkeycaps.
189 <li>providing hooks to the local administrators
191 <li>reduce flexibility. trying to support people over the phone when
192 the gui is different for every person is a pain.
194 <li>do not try to cleverly find the final resting place of the installation.
198 <h2>Solving the upgrade problem using multilevel
203 <li>local configuration should be kept during upgrades
</li>
205 <li>do not change configuration file format
</li>
207 <li>easiest to do if the local configuration is separate from the
210 <li>several actors what to have a say in the service
211 configuration. allow them to have their own files
213 <li>Example: read config from /usr/share/foo/config,
214 /site/share/foo/config, /etc/foo/config, ~/.foo/config,
215 /etc/foo/config.fixed, /site/share/foo/config.fixed,
216 /usr/share/foo/config.fixed.
218 <li>make it possible to provide package, site, host and user
219 defaults, as well as locking down features on a host, site and
222 <li>always well known where the admin made his changes
226 <h2>Thank you very much
</h2>