Method and system for automatically distributing, running and updating executable programs

The invention relates to a method and a system for automatically distributing, running and updating executable programs. The method includes that a client side packing the executable programs and a directory where related files are positioned into a file, and stores the packed file into a state storage cluster by adopting a large file segmentation and index storage method; a working node regularly detects index states of the state storage cluster, and downloads the executable programs into a local directory according to an index mode when the circumstance that new indexes exist or several indexes are already updated is detected; the working node regularly acquires program-related information from the state storage cluster; the working node detects downloading states of the executable programs every other heartbeat time according to the program-related information, and executes the executable programs until completion of downloading of the executable programs is detected. By the method and the system, automatic distribution, running and updating of the executable programs, especially online updating of the executable programs being executed, can be realized, and resubmission of Job information is not needed, so that flexibility and stability of the system are improved.