In recently years, China lottery market develop fleetly, lottery circulation create a record again and again, lottery sale is close to 400 hundred million. With the increase of lottery sale and extend of lottery system scale, lottery sale system is required to get the higher lever, and it becomes a need.At present, lottery sale system structure is a third class: data center, the second manager center and sale terminal. Terminals links to data center with the preassigned server address, that is to say, each terminal link to some fixed server, and the business data are saved the local server, which is lack of flexible and high available. Server cluster system is a flexible and a high available lottery net server, which has good expansibility and load balance ability.In this paper, I analyses the technology characters of server cluster, and import it to the lottery sale system with the software engineering design idea and lottery practicality. The system combined the work theory of cluster, full use the load balance technology, share store technology and net communication technology, and settled many problem in presently lottery system, such as real time, reliability, dependability, security, and invest rationality. Then I described the Linux server cluster design and research in lottery sale system, the emphasis at the structure and realize of lottery cluster system, realize of load balance, and use of share store. At last, I code with Linux C and realized the communication server and data procession server, which makes data procession is high available, dependable, and integral. |