-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mxqd: Set MXQ_HOSTID to bootid-hex(starttime)-pid
- Loading branch information
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4f2859e
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.
What is the plan with host_id?
It is copied from server to job, but doesn't seem to make a functional difference in mxqd. The only usage currently is in the query in mxq_set_job_status_loaded_on_server but this shouldn't make a difference, because job_id alone is unique.
The user jobs get it via environment, but what are they supposed to do with it?
4f2859e
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.
no real "plan", but improve existing host_id
this is a uniq id for the mxqd process "runnning server".
since pid+hostname+server_id alone is not unique (recycled pid or even reproducable startup of sevrer might end up with the same pid after every reboot.. ;))
hostname::server_id is not uniq at all.. so this infomation was useless...
this is not used to identify a job..
it might be used to identify reboots, restarts, and group jobs that all run under the control of the same mxqd process (for statistical reasons or whatever)
this implements #23