芊雅企服
软件更新资讯

Tsuru 0.12.0 发布开源 PaaS 平台

芊雅企服技术团队338 次浏览更新于 约 13 分钟读完

Tsuru 0.12.0 发布,该版本更新内容包括增加新的特性,bug 修复,总体改进和向后兼容更新,具体内容如下:

主要新特性

  • Lean containers: this is definitely the big feature of this release. With lean containers, we’ve dropped Circus, making application images smaller, and containers faster. Improving resource usage.

    Application containers won’t run tsuru-unit-agent anymore either. It’s still used during the deployment process, but it’s not competing with the application process anymore.

    Instead of having one agent inside each unit, Docker nodes will now have one agent collecting information about containers running in the node. This agent is named bs. The default behavior of tsuru is to create the bs container before running operation in the node. It should work out-of-the-box after the update, but you can tune bs configuration, customizing the Docker image for running it or configuring it to use Unix socket instead of TCP for Docker API communication (which is safer).

    tsuru will create and manage at least one container per Procfile entry. Users are now able to manage the amount of units for each process.

    Latest tsuru-admin release includes commands for managing bs configuration.

    See issues #647 and #1136for more details.

  • There are now three kinds of pools: by team, public and default. Team’s pool are segregated by teams, and cloud administrator should set teams in this pool manually. This pool are just accessible by team’s members.

    Public pools are accessible by any user. It can be used to segregate machines that have specific hardware.

    Default pool are for experimentation and low profile apps, like service dashboard and “in development” apps. This is the old fallback pool, but with an explicit flag.

  • New router available: vulcand (thanks Dan Carley). Vulcand is a powerful reverse proxy, with SNI based TLS support. This is the first step on being able to configure TLS on applications (see issue #1206).

    It’s now possible to choose between Hipache, Galeb (which is still partially open source) and Vulcand.

  • Users are now able to change the plan of an application. tsuru will handle changes in the router and in other plan-defined application resources (i.e. memory, swap and CPU shares)  #1181

  • Introduce a custom port allocator on tsuru. This allocator replaces the default port allocation provided by Docker, offering a way of persisting the port of a container after restarts.

    The motivation behind this feature is making sure the host port mapped to one container never changes, even after restarting docker daemon or rebooting the host. This way, we can always be sure that routers are pointing to a valid address.

    The default behavior is to stick to the Docker allocator, please refer to theport-allocator configuration documentationfor instructions on how to choose the tsuru allocator.

    This is related to issue #1072.

Bug 修复

  • Properly handle suffixes when adding a CNAME to an application (thanks Leandro Souza).#1215
  • Improve safety in app-restart and other containers related operations. #1188
  • Admin users can now delete any teams. #1232
  • Prevent service instances orphaning by not allowing a team that is the owner of a service instance to be removed. #1236
  • Properly handle key overriding on key management functions. Previously, when a user added a new key reusing a name, tsuru created the new key with the given name and body, letting the old body as an orphan key, making it impossible to remove the old key or associate it to another user. #1249
  • Unbind is now atomic, meaning that it’s safer to service administrators to trust on tsuru service operations being all-or-nothing. #1253
  • Fix error message on app-create when pool doesn’t exist. #1257

其它改进

  • Now tsuru doesn’t try to start stopped/errored containers when containers move. #1186

  • app-shell now uses WebSocket for communication between the tsuru client and the API. This allows app-shell to be used behind proxies that support WebSocket (e.g. nginx). For more details, see #1162.

  • tsuru will always use the segregate scheduler, the round robin scheduler has been disabled. In order to get a similar behavior, cloud admins can create a single pool and set it as the default pool, so users don’t need to choose the pool on app-create.

  • tsuru is now compatible with Docker 1.8.x. There was a small change in the Docker API, changing the way of handling mount points, which affected shared file systems.

  • Node auto-scaling now support multi-step scaling, meaning that when scaling up or down, it might add or remove multiple nodes at once. This reduces lock content on applications and the amount of containers rebalance runnings.

  • Support for Docker Registry API v2 (also known as Docker Distribution).

  • Application logs are now collected via WebSocket as well. Each Docker node connects to the tsuru API once, and then streams logs from all containers in the node.

  • Change application tokens so they never expire.

  • The EC2 IaaS now supports tagging. #1094

  • Add configuration options for timeouts in the Redis pubsub connection (use for real time logging, a.k.a. tsuru app-log -f).

  • Add a heartbeat for keeping connections open during platform-add and platform-update (thanks Richard Knop).

  • Improve error reporting in the user API (thanks Dan Hilton).

  • Change the behavior of unit-remove and app-remove handlers so they don’t run in background.

  • Enforce memory limits on Docker nodes when auto-scale is disabled. Now, whenever node auto-scaling is disabled, tsuru will enforce the max memory policy because this will trigger an error and someone will have to manually add a new node to allow new units to be created.#1251

  • docker-node-remove command now rebalance all containers in removed host. You also have a flag, --no-rebalance, to not rebalance thes containers. #1246

  • Add --disable flag in docker-node-update command. This flag tag your node as disabled in cluster. #1246

  • General improvements in the documentation:

    • add documentation about the /healthcheck/ endpoint (thanks Dan Carley)
    • improvements to router documentation pages (thanks Dan Carley)
    • fix code snippets in the services documentation page (thanks Leandro Souza)
    • typo and broken link fixes and structural improvements across all the documentation (thanks Dan Hilton).

向后兼容改进 (action needed)

  • As tsuru now creates containers per processes, whenever an application has more than one process, tsuru will forward requests to the process named “web”. So, in a Procfile like the one below, “api” should be replaced with “web”:
  • You should change your fallback pool to default pool and to do that you can run atsuru-admin pool-update pool_name --default=true
  • tsr has been renamed to tsurud. Please update any procedures and workflows (including upstart and other init scripts).

发行日志请点:releases

下载页面:0.12.0

Tsuru 是一个开放源码的 open Platform-as-a-Service (PaaS)平台。

Tsuru 可以让你构建自己的 PaaS 服务。Tsuru 采用 go 语言写成,依赖 go 环境和 libxml。

在 Tsuru 的 PaaS 服务下,你可以选择自己的编程语言,选择使用 SQL 或者 NoSQL 数据库,memcache、redis、等等许多服务,甚至与你可以使用 Git 版本控制工具来上传你应用。

相关文章

软件更新资讯Firefox 135.0 发布

Firefox 135.0 现已发布,具体更新内容如下: New Firefox 翻译现在支持比以往更多的语言…

1db25d63924c2fff4d7feb76cf041519软件更新资讯2025年无人自助棋牌室还能不能做?2025年还能不能做共享茶室

2025年还能不能做共享茶室,其实很尴尬,毕竟经济很差。但是我们给的建议是,如果手上有闲钱,有合适的场地,这种…

22软件更新资讯共享茶室加盟好还是自营好?

共享茶室是一种新兴的商业模式,包括加盟和自营两种经营方式。那么,到底是选择共享茶室加盟还是自营更好呢?这个问题…

cd9e2de08dacbe576c20a768773a8972软件更新资讯成都共享棋牌室系统多少钱?成都开共享棋牌室为什么选择芊雅共享棋牌室系统

成都共享棋牌室系统的价格取决于您选择的具体系统和规模。不同的系统功能和设备不同,其价格也会有所不同。在成都,共…

1软件更新资讯厦门宝丹鹭共享空间平台上线,厦门共享茶室系统哪家好?

厦门宝丹鹭共享空间平台上线,主打商务接待场景,由芊雅共享茶室系统强力驱动。近期我们将实地参观本福建的共享空间,…

Gym man and woman push-up strength pushup with dumbbell in a crossfit workout软件更新资讯健身APP开发帮助用户解决各种健身问题

我们都知道每一个胖子都是资深的潜力股,可以看出身形的塑造改变的不单单是外边,更多的是气质,如今越来越多人都加入…

免费获取你的专属方案。

资深技术顾问一对一诊断需求,为你量身定制方案与报价。

  • 免费需求诊断与方案建议
  • 透明报价,工期明确
  • 现成方案与定制开发灵活组合
电话咨询135 0699 3986

信息仅用于顾问联系你,绝不外泄。

电话咨询免费获取方案

和技术顾问聊聊,免费拿方案。

说说你的行业和想法,顾问免费评估方案与报价。

电话咨询135 0699 3986一键拨打
微信号fzqianya
技术顾问微信二维码
微信扫一扫添加技术顾问,直接沟通需求截图保存后,在微信“扫一扫”中选择图片识别

不方便沟通?留下电话,顾问回电