Release Note (3.14.1
)
Release time: 2023-02-24 10:21:36
This release contains 3 bug fixes and 3 documentation improvements.
🐞 Bug Fixes
Respect replication and host configuration for Executor Deployments (#5705)
Prior to this release, this setting wasn't fully respected when an Executor was deployed with a replication setup or specific host configuration.
It turns out that even though all replicas would be spun up, the Gateway would only know about one of them and would forward incoming requests to that replica. Additionally, all replica hostnames would be set to 0.0.0.0
, although the user may have chosen other hostname settings.
This release properly respects settings. All replicas are now configured with the specified hostname and the Jina Gateway properly load balances traffic to all replicas.
from jina import Deployment, Executor, requests, DocumentArray
class MyExecutor(Executor):
@requests
def foo(self, **kwargs):
print(self.runtime_args.name)
with Deployment(uses=MyExecutor, replicas=3, host='127.0.0.1') as dep:
dep.post(on='/', inputs=DocumentArray.empty(5), request_size=1)
─────────────────────── 🎉 Deployment is ready to serve! ───────────────────────
╭─────────────────────── 🔗 Endpoint ───────────────────────╮
│ ⛓ Protocol GRPC │
│ 🏠 Local 127.0.0.1:64503 │
│ 🔒 Private 192.168.178.45:64503 │
│ 🌍 Public 2003:c0:df06:f00:b16e:f44:45a6:7633:64503 │
╰───────────────────────────────────────────────────────────╯
executor/rep-0
executor/rep-0
executor/rep-1
executor/rep-2
executor/rep-2
Hide known warnings in Google Colab (#5706)
When using Jina in Google Colab, you may have received warnings about coroutines not being awaited. These warnings were mainly about Jina detecting a Jupyter environment and didn't really represent wrong behaviour. Thus, we have suppressed these warnings in this release.
DocArray v2 support with protobuf v4 (#5702)
Prior to this release, Jina did not support DocArray v2 if protobuf
v4 was installed. This release fixes the support and DocArray v2 should work fine for both versions of protobuf
(v3
and v4
). We have also increased test coverage so support is tested for both versions.
📗 Documentation Improvements
- Make Flow and Deployment difference clearer (#5709)
- Add warning about cleaning up Flows (#5708)
- Add JCloud Executor level labels (#5704)
🤟 Contributors
We would like to thank all contributors to this release:
- AlaeddineAbdessalem (@alaeddine-13)
- Alex Cureton-Griffiths (@alexcg1)
- Joan Fontanals (@JoanFM)
- Subba Reddy Veeramreddy (@subbuv26)