QUICKSTART 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. Application Interface Specification Quckstart Guide
  2. ---------------------------------------------------
  3. This AIS package is broken into four parts. The exec directory contains
  4. all of the code responsible for serving the APIs. The api directory contains
  5. APIs the user can link to. The test directory contains some simple test
  6. programs which exercise the APIs. The directory conf contains example
  7. configuration files which can be copied directly onto the target system.
  8. The API implements the Cluster Membership (CLM), Availabilty Management
  9. Framework (AMF) and the Checkpointing (CKPT) APIs.
  10. Configuring the AIS Executive:
  11. -----------------------------
  12. The AIS Executive will automatically determine cluster membership by
  13. communicating on a specified multicast address and port.
  14. The directory conf contains the file network.conf
  15. bindnetaddr:192.168.1.0
  16. mcastaddr:226.94.1.1
  17. mcastport:6000
  18. bindnetaddr specifies the address which the AIS Executive should bind to.
  19. This address should always end in zero. If the local interface taffic
  20. traffic should routed over is 192.168.5.92, set bindnetaddr to 192.168.1.0.
  21. mcastaddr is a multicast address. The default should work but you may have
  22. a different network configuration. Avoid 225.X.X.X because this is a "config"
  23. multicast address which every multicast capable host joins on system start.
  24. mcastport specifies the UDP port number. It is possible to use the same
  25. multicast address on a network with the AIS services configured for multiple
  26. UDP ports.
  27. The directory conf contains the file groups.conf which specifies the failover
  28. groups, service units, components, and policies to be used by the AMF. The
  29. configuration file matches the testamf1-6 programs in the test directory and
  30. can be copied directly.
  31. These two files should be placed in the /etc/ais directory.
  32. Building AIS
  33. ------------
  34. AIS requires GCC, LD, and a Linux 2.4 kernel. AIS has been tested on
  35. Debian Sarge, MontaVista Carrier Grade Edition 3.1, and Redhat 9.
  36. Compile AIS by running make in the root directory. Make can also be run
  37. in the individual directories. Nothing is installed by make. If install
  38. is desired, the files must be copied manually.
  39. Setup network
  40. -------------
  41. Some networks do not automatically configure the default route. Ensure
  42. the default route is configured or AIS wont be able to communicate with
  43. other nodes.
  44. [sdake@slickdeal checkpointd]$ /sbin/route
  45. Kernel IP routing table
  46. Destination Gateway Genmask Flags Metric Ref Use Iface
  47. 10.0.0.6 * 255.255.255.255 UH 0 0 0 tun0
  48. 127.0.0.0 * 255.0.0.0 U 0 0 0 lo
  49. default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
  50. the word default above specifies the default route. If the default route
  51. is missing, specify one by
  52. unix# /sbin/route add default gw 192.168.1.1
  53. where 192.168.1.1 is the gateway. It is possible to specify an invalid
  54. route which will also make AIS work properly.
  55. Run AIS Executive
  56. -----------------
  57. Get 2 or more nodes and run the AIS executive on each node. A list of
  58. node IPs should be displayed on stdout when the nodes join a configuration.
  59. Run the aisexec program (after the default route is setup and the config
  60. files are in place).
  61. Try out the CLM functionality
  62. -----------------------------
  63. Run test/testclm on one node. Then kill and add nodes. This will cause
  64. callbacks to be called in the testclm application which will print out
  65. the node state changes.
  66. Try out the AIS AMF functionality
  67. ---------------------------------
  68. After aisexec is running
  69. Run testamf1 on one node, testamf3 testamf4 on another node.
  70. One will become active one standby. testamf2 is special in that it shows
  71. reporting and canceling an error. Run testamf2 on the node testamf1
  72. was run from. The ha states and readiness states will be shown.
  73. Try out the AIS CKPT functionality
  74. ----------------------------------
  75. run ckptstress. This will write checkpoint data as quickly as possible to
  76. the cluster.
  77. Write your own applications
  78. ---------------------------
  79. Without real applications, finding the hard bugs will be difficult. Please
  80. port or write apps and let us know of the progress!
  81. Contribute!
  82. -----------
  83. Code, examples, documentation, bug reports, testing are all appreciated.
  84. Read the TODO or the ask on the mailing lists for ways to contribute.