# loadbalancer

loadbalancer\_db.py中定义了跟负载均衡服务相关的几个数据库资源和操作类。 资源类都继承自model\_base.BASE2类，此外还根据需求继承了其他几个类增添属性。

* SessionPersistence类表示数据库中一条session的持久化类型；
* PoolStatistics类表示数据库中一个pool的一些统计信息；
* Vip类表示数据库中一个VIP记录；
* Member类表示一个负载均衡的成员；
* Pool类表示一个负载均衡池资源；
* HealthMonitor类表示一个负载均衡的健康状态监视器资源；
* PoolMonitorAssociation类表示Pool到HealthMonitor的关联关系。
* LoadBalancerPluginDb则继承自loadbalancer.LoadBalancerPluginBase和base\_db.CommonDbMixin，代表对负载均衡相关的数据资源进行操作实现。

![](https://github.com/yeasy/openstack_code_Neutron/tree/f46dcf5e6238c1e730845060ea2d3e4103007e88/neutron/_images/neutron.db.loadbalancer.loadbalancer_db.png)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://yeasy.gitbook.io/openstack_code_neutron/neutron/db/extensions/loadbalancer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
