Kong 0.10.1 发布
jopen 8年前
<p style="text-align: center;"><strong><img alt="" src="https://simg.open-open.com/show/22cdaab266499458882a505cb199be22.png" /></strong></p> <p> </p> <p>Kong是在客户端和(微)服务间转发API通信的API网关,通过插件扩展功能。Kong有两个主要组件:</p> <ul> <li>Kong Server :基于nginx的服务器,用来接收API请求。</li> <li>Apache Cassandra :用来存储操作数据。</li> </ul> <p>你可以通过增加更多Kong Server机器对Kong服务进行水平扩展,通过前置的负载均衡器向这些机器分发请求。根据文档描述,两个Cassandra节点就足以支撑绝大多数情况,但如果网络非常拥挤,可以考虑适当增加更多节点。</p> <p>对于开源社区来说,Kong 中最诱人的一个特性是可以通过插件扩展已有功能,这些插件在 API 请求响应循环的生命周期中被执行。插件使用 Lua 编写,而且 Kong 还有如下几个基础功能:</p> <ul> <li> HTTP 基本认证</li> <li> 密钥认证</li> <li> CORS( Cross-origin Resource Sharing,跨域资源共享)</li> <li> TCP/UDP</li> <li> 文件日志</li> <li> API 请求限流</li> <li> 请求转发</li> <li> nginx 监控</li> </ul> <p style="text-align: center;"><a href="https://simg.open-open.com/show/8cc1737a2b0ff1e31dcec627751ec625.png"><img alt="" src="https://simg.open-open.com/show/8cc1737a2b0ff1e31dcec627751ec625.png" /></a></p> <h2>更新日志</h2> <ul> <li> Serf has been downgraded to version 0.7 in our distributions,although versions up to 0.8.1 are still supported. This fixes a problem when automatically detecting the first non-loopback private IP address, which was defaulted to <code>127.0.0.1</code> in Kong 0.10.0. Greater versions of Serf can still<br /> be used, but the IP address needs to be manually specified in the <code>cluster_advertise</code> configuration property.</li> <li>Admin API: <ul> <li>Disable support for TLS/1.0.<br /> <a href="/misc/goto?guid=4959004252855021423">#2212</a></li> </ul> </li> </ul> <h3>Added</h3> <ul> <li>Admin API: <ul> <li>Active targets can be pulled with <code>GET /upstreams/{name}/targets/active</code>.<br /> <a href="/misc/goto?guid=4959004252978903194">#2230</a></li> <li>Provide a convenience endpoint to disable targets at: <code>DELETE /upstreams/{name}/targets/{target}</code>.Under the hood, this creates a new target with <code>weigth = 0</code> (the correct way of disabling targets, which used to cause confusion).<br /> <a href="/misc/goto?guid=4959004253083081243">#2256</a></li> </ul> </li> <li>Plugins: <ul> <li>cors: Support for configuring multiple Origin domains.<br /> <a href="/misc/goto?guid=4959004253175400191">#2203</a></li> </ul> </li> </ul> <h3>Fixed</h3> <ul> <li>Use an LRU cache for Lua-land entities caching to avoid exhausting the Lua VM memory in long-running instances.<br /> <a href="/misc/goto?guid=4959004253283047133">#2246</a></li> <li>Avoid potential deadlocks upon callback errors in the caching module for database entities.<br /> <a href="/misc/goto?guid=4959004253388988567">#2197</a></li> <li>Relax multipart MIME type parsing. A space is allowed in between values of the Content-Type header.<br /> <a href="/misc/goto?guid=4959004253496369883">#2215</a></li> <li>Admin API: <ul> <li>Better handling of non-supported HTTP methods on endpoints of the Admin API. In some cases this used to throw an internal error. Calling any endpoint with a non-supported HTTP method now always returns <code>405 Method Not Allowed</code> as expected.<br /> <a href="/misc/goto?guid=4959004253593330520">#2213</a></li> </ul> </li> <li>CLI: <ul> <li>Better error handling when missing Serf executable.<br /> <a href="/misc/goto?guid=4959004253700417401">#2218</a></li> <li>Fix a bug in the <code>kong migrations</code> command that would prevent it to run correctly.<br /> <a href="/misc/goto?guid=4959004253799914892">#2238</a></li> <li>Trim list values specified in the configuration file.<br /> <a href="/misc/goto?guid=4959004253899697318">#2206</a></li> <li>Align the default configuration file's values to the actual, hard-coded default values to avoid confusion.<br /> <a href="/misc/goto?guid=4959004254003686716">#2254</a></li> </ul> </li> <li>Plugins: <ul> <li>hmac: Generate an HMAC secret value if none is provided.<br /> <a href="/misc/goto?guid=4959004254119361256">#2158</a></li> <li>oauth2: Don't try to remove credential values from request bodies if the MIME type is multipart, since such attemps would result in an error.<br /> <a href="/misc/goto?guid=4959004254215627421">#2176</a></li> <li>ldap: This plugin should not be applied to a single Consumer, however, this was not properly enforced. It is now impossible to apply this plugin to a single Consumer (as per all authentication plugin).<br /> <a href="/misc/goto?guid=4959004254333598218">#2237</a></li> <li>aws-lambda: Support for <code>us-west-2</code> region in schema.<br /> <a href="/misc/goto?guid=4959004254450266864">#2257</a></li> </ul> </li> </ul> <h2>下载</h2> <ul> <li><a href="/misc/goto?guid=4959004254568367377" rel="nofollow"><strong>kong-0.10.1.aws.rpm</strong></a></li> <li><a href="/misc/goto?guid=4959004254682907183" rel="nofollow"><strong>kong-0.10.1.el6.noarch.rpm</strong></a></li> <li><a href="/misc/goto?guid=4959004254808360002" rel="nofollow"><strong>kong-0.10.1.el7.noarch.rpm</strong></a></li> <li><a href="/misc/goto?guid=4959004254941289750" rel="nofollow"><strong>kong-0.10.1.jessie_all.deb</strong></a></li> <li><a href="/misc/goto?guid=4959004255067101497" rel="nofollow"><strong>kong-0.10.1.osx.pkg</strong></a></li> <li><a href="/misc/goto?guid=4959004255197648447" rel="nofollow"><strong>kong-0.10.1.precise_all.deb</strong></a></li> <li><a href="/misc/goto?guid=4959004255323221933" rel="nofollow"><strong>kong-0.10.1.trusty_all.deb</strong></a></li> <li><a href="/misc/goto?guid=4959004255460531127" rel="nofollow"><strong>kong-0.10.1.vivid_all.deb</strong></a></li> <li><a href="/misc/goto?guid=4959004255600802481" rel="nofollow"><strong>kong-0.10.1.wheezy_all.deb</strong></a></li> <li><a href="/misc/goto?guid=4959004255730504011" rel="nofollow"><strong>kong-0.10.1.xenial_all.deb</strong></a></li> <li><a href="/misc/goto?guid=4959004255858553327" rel="nofollow"><strong>Source code</strong> (zip)</a></li> <li><a href="/misc/goto?guid=4959004255988956985" rel="nofollow"><strong>Source code</strong> (tar.gz)</a></li> </ul> <p>本站原创,转载时保留以下信息:<br /> 本文转自:深度开源(open-open.com)<br /> 原文地址:<a href="http://www.open-open.com/news/view/615bb2ea">http://www.open-open.com/news/view/615bb2ea</a></p>