There are conflicts between the increasingly complex operational requirements and the slow rate of system platform upgrading, especially in the industry of railway transit-signaling systems. We attempted to address this problem by establishing a model for migrating computing units and data under resource-constrained conditions in this paper. By decomposing and reallocating application functions, optimizing the use of CPU, memory, and network bandwidth, a hierarchical structure of computing units is proposed. The architecture divides the system into layers and components to facilitate resource management. Then, a migration strategy is proposed, which mainly focuses on moving components and data from less critical paths to critical paths and ultimately optimizing the utilization of computing resources. Specifically, the test results suggest that the method can reduce the overall CPU utilization by 27%, memory usage by 6.8%, and network bandwidth occupation by 35%. The practical value of this study lies in providing a theoretical model and implementation method for optimizing resource allocation in scenarios where there is a gap between resource and computing requirements in fixed-resource service architectures. The strategy is compatible for distributed computing architectures and cloud/cloud–edge-computing architectures.