In order to make full use of user-side energy storage resources and maximize user-side energy storage revenue, a user-side energy storage optimization configuration method that participates in the ancillary service market is proposed. First, the full life cycle cost of user-side energy storage and a revenue model considering ancillary services were established. Secondly, considering the operating characteristics of energy storage batteries and user load characteristics, a user-side energy storage optimization configuration model participating in auxiliary services was established. Using energy storage capacity and auxiliary service parameters as optimization variables, the full life cycle of industrial user energy storage was analyzed. Optimize calculation of net income. Finally, taking a certain local energy storage auxiliary service market as an example, the configuration optimization of user-side energy storage participating in auxiliary services was realized.