Units API.

See the Weblate's Web API documentation for detailed description of the API.

GET /api/units/7665958/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "translation": "https://l10n.opensuse.org/api/translations/yast-iplb/master/zh_CN/?format=api",
    "source": [
        "</p><p><b><big>quiescent</big> = yes</b>|<b>no</b>\n</p><p>If <i>yes</i>, then when real or failback servers are determined to be down, they are not actually removed from the kernel's <small>LVS</small> table.\nRather, their weight is set to zero which means that no new connections will be accepted.\n</p><p>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</p><p>This side-effect can be avoided by running the following:\n</p><p>echo 1 &gt; /proc/sys/net/ipv4/vs/expire_quiescent_template\n</p><p>If the proc file isn't present this probably means that the kernel doesn't have lvs support, <small>LVS</small> support isn't loaded, or the kernel is too\nold to have the proc file. Running ipvsadm as root should load <small>LVS</small> into the kernel if it is possible.\n</p><p>If <i>no</i>, then the real or failback servers will be removed from the kernel's <small>LVS</small> table. The default is <i>yes</i>.\n</p><p>If defined in a virtual server section then the global value is overridden.\n</p><p>Default: <i>yes</i>\n\n\n\n"
    ],
    "previous_source": "",
    "target": [
        "</p><p><b><big>quiescent</big> = yes</b>|<b>no</b>\n</p><p>如果为 <i>yes</i>,则确定真实服务器或故障回复服务器已停机时,不会真正将它们从内核的 <small>LVS</small> 表中去除。\n而是将它们的权重设置为零,也就是说,不接受任何新的连接。\n</p><p>这会造成负面影响:因为如果真实服务器具有永久连接,则来自任何现有客户端的新连接将继续路由到\n真实服务器,直到永久超时失效。有关永久连接的更多信息,请参见“ipvsadm”。\n</p><p>可通过运行以下命令避免这种负面影响:\n</p><p>echo 1 &gt; /proc/sys/net/ipv4/vs/expire_quiescent_template\n</p><p>如果 proc 文件不存在,则可能意味着内核不提供 lvs 支持、未加载 <small>LVS</small> 支持,或者内核太旧,\n不包含 proc 文件。在可能的情况下,以 root 身份运行 ipvsadm 应该可以将 <small>LVS</small> 载入内核。\n</p><p>如果为 <i>no</i>,则会从内核的 <small>LVS</small> 表中去除真实服务器或故障回复服务器。默认值为 <i>yes</i>。\n</p><p>如果在虚拟服务器部分中定义该值,则会覆盖全局值。\n</p><p>默认值:<i>yes</i>\n\n\n\n"
    ],
    "id_hash": 14899246222540085,
    "content_hash": 14899246222540085,
    "location": "src/include/iplb/helps.rb:329",
    "context": "",
    "note": "",
    "flags": "",
    "state": 20,
    "fuzzy": false,
    "translated": true,
    "approved": false,
    "position": 64,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 177,
    "source_unit": "https://l10n.opensuse.org/api/units/12576944/?format=api",
    "priority": 100,
    "id": 7665958,
    "web_url": "https://l10n.opensuse.org/translate/yast-iplb/master/zh_CN/?checksum=8034eec91683fd35",
    "url": "https://l10n.opensuse.org/api/units/7665958/?format=api",
    "explanation": "",
    "extra_flags": ""
}