The invention relates to a self-
adaptive capacity expansion and contraction
system and method based on deep
reinforcement learning and
sequence prediction. The method comprises the following steps of: constructing a
queue; recording a generalized
queue length of a request by adopting the
queue; acquiring a time-based request arrival number; preprocessing the generalized queue length of the request, a GPU
utilization rate, a service
response delay and request queuing time to generate a high-dimensional multi-dimensional
state vector; the method comprises the following steps: performing modeling on a high-dimensional and multi-dimensional
state vector of a historical load sequence by adopting a Transform model, predicting a future load trend, constructing a deep
reinforcement learning environment based on a prediction result of the future load trend and a current
system state, and performing construction of a capacity expansion and contraction strategy model and optimization of a capacity expansion and contraction strategy by adopting a PPO
algorithm; a
system supply and demand balance state is quantified through a generalized queue length, the limitation that a traditional queue can only reflect request backlog is solved, and a
closed loop is formed through prediction,
decision making, feedback and re-prediction.