Skip to content
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

Write process pid file earlier #6539

Merged
merged 1 commit into from
Mar 23, 2016

Conversation

bevacqua
Copy link
Contributor

Should fix #4680. I presumed no tests should have to change but feel free to grunt at me if that's not the case.

@epixa
Copy link
Contributor

epixa commented Mar 15, 2016

I don't think it make sense to write a pid file if the process never binds to a port. It's possible at the moment to instantiate KbnServer to be used programmatically without ever having the intention of binding it to a port. In some of our tests for example, we're probably instantiating dozens of instances of KbnServer. I think we're also doing it in the cli plugin installer in order to run the optimizer.

@epixa
Copy link
Contributor

epixa commented Mar 16, 2016

@bevacqua What do you think?

@epixa epixa assigned bevacqua and unassigned epixa Mar 16, 2016
@bevacqua
Copy link
Contributor Author

What purpose does the pidfile serve? I feel like the pidfile is associated more with clustering than with listening. Workers may take a while to warm up before they become operational, but in the meantime not knowing the cluster's pid may be detrimental to things depending on that file to exist while the cluster is running.

That said I'm not familiar with the use cases nor with the clustering architecture used in Kibana.

@bevacqua bevacqua assigned epixa and unassigned bevacqua Mar 16, 2016
@spalger
Copy link
Contributor

spalger commented Mar 16, 2016

I feel like the pid should be written as soon as we have it, and removed only when the process is actually shutdown. My opinion would be different if we were trying to provide an "operational kibana instance id", but I feel like this is more about knowing if the process is running, and how to address it (via signals, etc) if so.

Consider this scenaio:

start nginx
stop nginx #-> error: nginx isn't running
sleep 1
stop nginx #-> nginx stopped

@epixa
Copy link
Contributor

epixa commented Mar 17, 2016

I certainly think that's reasonable, I've just never heard of storing pid in a file when the process isn't intended to be long lived.

LGTM

@epixa epixa assigned bevacqua and unassigned epixa Mar 17, 2016
@bevacqua bevacqua assigned spalger and unassigned bevacqua Mar 18, 2016
@bevacqua
Copy link
Contributor Author

@spalger Assigning you to take a second glance at this. Thanks!

@rashidkpc
Copy link
Contributor

I don't see any issues with this, @spalger did you want to take another look at it?

@spalger
Copy link
Contributor

spalger commented Mar 23, 2016

LGTM

@spalger spalger merged commit 7bbfa22 into elastic:master Mar 23, 2016
jbudz pushed a commit that referenced this pull request Jan 27, 2023
## Summary

`[email protected]` ⏩ `[email protected]`

---

## [`74.0.1`](https://github.com/elastic/eui/tree/v74.0.1)

**Bug fixes**

- Fixed `EuiModalHeaderTitle` type errors when passed `EuiTitle` props
([#6547](elastic/eui#6547))

## [`74.0.0`](https://github.com/elastic/eui/tree/v74.0.0)

- Added the `component` prop to `EuiModalHeaderTitle`, which allows
overriding the default `h1` tag
([#6530](elastic/eui#6530))
- Added the `titleProps` prop to `EuiConfirmModal`, which allows
overriding the default `h1` tag
([#6530](elastic/eui#6530))

**Bug fixes**

- Fixed slight row height jumping in `EuiBasicTable`s when actions with
tooltips became disabled
([#6538](elastic/eui#6538))

**Breaking changes**

- `EuiModalHeaderTitle` now **always** wraps its children in a `h1` tag
(previously attempted to conditionally detect whether its children were
raw strings or not). To change this tag type to, e.g. a more generic
`div`, use the new `component` prop.
([#6530](elastic/eui#6530))
- `EuiLink` now applies `rel="noreferrer"` to all domains, including
`elastic.co` ([#6535](elastic/eui#6535))
- `EuiBasicTable` no longer blocks mouse/keyboard interactions while
`loading` ([#6543](elastic/eui#6543))

**CSS-in-JS conversions**

- Converted `EuiBasicTable` to Emotion
([#6539](elastic/eui#6539))
- Added a new `RenderWithEuiTheme` render prop utility
([#6539](elastic/eui#6539))

---------

Co-authored-by: Kibana Machine <[email protected]>
kqualters-elastic pushed a commit to kqualters-elastic/kibana that referenced this pull request Feb 6, 2023
## Summary

`[email protected]` ⏩ `[email protected]`

---

## [`74.0.1`](https://github.com/elastic/eui/tree/v74.0.1)

**Bug fixes**

- Fixed `EuiModalHeaderTitle` type errors when passed `EuiTitle` props
([elastic#6547](elastic/eui#6547))

## [`74.0.0`](https://github.com/elastic/eui/tree/v74.0.0)

- Added the `component` prop to `EuiModalHeaderTitle`, which allows
overriding the default `h1` tag
([elastic#6530](elastic/eui#6530))
- Added the `titleProps` prop to `EuiConfirmModal`, which allows
overriding the default `h1` tag
([elastic#6530](elastic/eui#6530))

**Bug fixes**

- Fixed slight row height jumping in `EuiBasicTable`s when actions with
tooltips became disabled
([elastic#6538](elastic/eui#6538))

**Breaking changes**

- `EuiModalHeaderTitle` now **always** wraps its children in a `h1` tag
(previously attempted to conditionally detect whether its children were
raw strings or not). To change this tag type to, e.g. a more generic
`div`, use the new `component` prop.
([elastic#6530](elastic/eui#6530))
- `EuiLink` now applies `rel="noreferrer"` to all domains, including
`elastic.co` ([elastic#6535](elastic/eui#6535))
- `EuiBasicTable` no longer blocks mouse/keyboard interactions while
`loading` ([elastic#6543](elastic/eui#6543))

**CSS-in-JS conversions**

- Converted `EuiBasicTable` to Emotion
([elastic#6539](elastic/eui#6539))
- Added a new `RenderWithEuiTheme` render prop utility
([elastic#6539](elastic/eui#6539))

---------

Co-authored-by: Kibana Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PID of the kibana process could be written to pid file earlier
4 participants