-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[9.0] add ElasticPilotParametersDB #7164
Conversation
a48f466
to
7e13f8e
Compare
indexSplit = int(pilotID) // 1e6 | ||
return f"{self.indexName_base}_{indexSplit}m" | ||
|
||
def _createIndex(self, indexName: str) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use index templates instead of creating the index manually?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can add the index templates, but anyway the index will need to be created by hand, because the logic for the name depends from the JobID.
# The _id in ES can't exceed 512 bytes, this is a ES hard-coded limitation. | ||
|
||
# If a record with this pilotID update and add parameter, otherwise create a new record | ||
if self.existsDoc(self._indexName(pilotID), docID=str(pilotID)): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we upsert instead?
|
||
self.log.debug("Inserting data in {self.indexName}:{data}") | ||
|
||
# The _id in ES can't exceed 512 bytes, this is a ES hard-coded limitation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does anything need to be done about this?
e88e94d
to
0d8b501
Compare
0d8b501
to
efa723a
Compare
Moved to diracx |
For DIRACGrid/diracx#277
ToDo:
How to populate this DB? Probably directly from the Pilot, but not only.
BEGINRELEASENOTES
*WMS
NEW: add ElasticPilotParametersDB
ENDRELEASENOTES