This week, I worked on adding Job Attributes like Owner, Job Group, Running Time etc. to ElasticSearch.
The main idea behind such a move is that in future we would like to see these attributes as part of Job Parameters. This would allow for easier and efficient queries as it these attributes are commonly accessed in most of the functions.
The changes/additions made to the existing code are:
1. Modified "setJobParameter" to receive these parameters as keywords, meaning they can be sent to the function but not necessarily required. The index has been modified with additions of the following attributes:
The main idea behind such a move is that in future we would like to see these attributes as part of Job Parameters. This would allow for easier and efficient queries as it these attributes are commonly accessed in most of the functions.
The changes/additions made to the existing code are:
1. Modified "setJobParameter" to receive these parameters as keywords, meaning they can be sent to the function but not necessarily required. The index has been modified with additions of the following attributes:
- Job Group
- Owner
- Proxy
- Submission Time
- Running Time
2. Add "getJobParametersAndAttributes" function in order to access results based on JobID, containing both Parameters (Name, Value) and Attributes (all five mentioned above).
Along with this, existing codes were modified to use these functions, as well as some issues, were fixed in tests, Monitoring etc.
All my commits can be found below:
- Add attributes to ES: 677ad2333d031c82e502aba20d48ac3118ec3ddb
- Fix issues in Monitoring and MySQL: 61180f8da0a6bd6d4da3c13203a5449a81f93166
That's all done for the week 😄.
Comments
Post a Comment