Units API

See <a href="https://docs.weblate.org/en/weblate-3.6.1/api.html#units">the Weblate's Web API documentation</a> for detailed
description of the API.

GET /api/units/7665935/?format=api
Content-Type: application/json
Vary: Accept

    "translation": "https://l10n.opensuse.org/api/translations/yast-iplb/master/zh_CN/?format=api",
    "source": "

quiescent = yes|no\n

If yes, then when real or failback servers are determined to be down, they are not actually removed from the kernel's LVS table.\nRather, their weight is set to zero which means that no new connections will be accepted.\n

This has the side effect, that if the real server has persistent connections, new connections from any existing clients will continue to be routed to the\nreal server, until the persistant timeout can expire. See ipvsadm for more information on persistant connections.\n

This side-effect can be avoided by running the following:\n

echo 1 > /proc/sys/net/ipv4/vs/expire_quiescent_template\n

If the proc file isn't present this probably means that the kernel doesn't have lvs support, LVS support isn't loaded, or the kernel is too\nold to have the proc file. Running ipvsadm as root should load LVS into the kernel if it is possible.\n

If no, then the real or failback servers will be removed from the kernel's LVS table. The default is yes.\n

If defined in a virtual server section then the global value is overridden.\n

Default: yes\n\n", "previous_source": "", "target": "

quiescent = yes|no\n

若为 yes 则当真实或回退服务器被认定为离线时,它们不会真的从内核的 LVS 表中移除。\n然而,它们的权重会被设为零,即意味着不再接受新连接。\n

这有一个副作用,即若真实服务器有持续连接,来自已有客户端的新连接将被继续中继到真实服务器,\n直到超过持续超时。持续连接的更多信息请见 ipvsadm。\n


echo 1 > /proc/sys/net/ipv4/vs/expire_quiescent_template\n

若该 proc 文件不存在这可能意味着内核没有 lvs 支持、LVS 支持未加载,\n或内核太老完全没有该 proc 文件。若可行以 root 身份运行 ipvsadm 应能加载 LVS 到内核。\n

若为 no 则真实或回退服务器将从内核的 LVS 表中移除。默认为 yes。\n


默认: yes\n\n", "id_hash": -5578213981398008811, "content_hash": -5578213981398008811, "location": "src/include/iplb/helps.rb:102", "context": "", "comment": "", "flags": "", "fuzzy": false, "translated": true, "position": 41, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 177, "priority": 100, "id": 7665935, "web_url": "https://l10n.opensuse.org/translate/yast-iplb/master/zh_CN/?checksum=329633f045a77c15", "url": "https://l10n.opensuse.org/api/units/7665935/?format=api", "source_info": "https://l10n.opensuse.org/api/sources/221540/?format=api" }