Skip to content

Commit

Permalink
Upgrade Elasticsearch client to 8.x (#1669)
Browse files Browse the repository at this point in the history
With this commit we upgrade the `elasticsearch-py` client from 7.14.0 to
8.6.1, and install `elastic_transport` 8.4.0, a new library
that is responsible for the underlying network requests to Elasticsearch.

Co-authored-by: Mike Baamonde <[email protected]>
Co-authored-by: Quentin Pradet <[email protected]>
  • Loading branch information
3 people authored Mar 4, 2023
1 parent bd90820 commit bc4625c
Show file tree
Hide file tree
Showing 28 changed files with 1,570 additions and 849 deletions.
29 changes: 12 additions & 17 deletions docs/command_line_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -765,34 +765,31 @@ Define a JSON file containing a list of objects with the following properties:

* ``path``: A path or path pattern that should be matched. Only leading and trailing wildcards (``*``) are supported. A path containing only a wildcard acts matches any path.
* ``body``: The respective response body.
* ``body-encoding``: Either ``raw`` or ``json``. Use ``json`` by default and ``raw`` for the operation-type ``bulk`` and ``search``.

Here we define the necessary responses for a track that bulk-indexes data::

[
{
"path": "/_cluster/settings",
"body": {
"transient": {
"action.destructive_requires_name": "true"
}
}
},
{
"path": "*/_bulk",
"body": {
"errors": false,
"took": 1
},
"body-encoding": "raw"
}
},
{
"path": "/_cluster/health*",
"body": {
"status": "green",
"relocating_shards": 0
},
"body-encoding": "json"
},
{
"path": "/_cluster/settings",
"body": {
"persistent": {},
"transient": {}
},
"body-encoding": "json"
}
},
{
"path": "/_all/_stats/_all",
Expand All @@ -804,13 +801,11 @@ Here we define the necessary responses for a track that bulk-indexes data::
}
}
}
},
"body-encoding": "json"
}
},
{
"path": "*",
"body": {},
"body-encoding": "json"
"body": {}
}
]

Expand Down
4 changes: 4 additions & 0 deletions docs/migrate.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Migration Guide
Migrating to Rally 2.7.1
------------------------

Elasticsearch client logs are now captured by the `elastic_transport <https://github.com/elastic/elastic-transport-python/>`_ logger
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Rally migrated to the 8.x version of the ``elasticsearch-py`` library which uses a new logger named ``elastic_transport``. Rally will automatically configure this logger to only emit logs of level ``WARNING`` and above, even if a past Rally version configured logging using the ``~./rally/logging.json`` file without that logger.

Snapshot repository plugins are no longer built from source
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down
Loading

0 comments on commit bc4625c

Please sign in to comment.