-
Notifications
You must be signed in to change notification settings - Fork 10
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
instance id metadata is 'Noinstanceid' #14
Comments
+1
|
You may be right. I'll have a look! |
Hi,
CloudwatchAppender returned The next log message then has
|
Hi, I'm working on an update, which will adress this and one more issue. I Best On Wednesday, 2 March 2016, Rob Speller notifications@github.com wrote:
|
Excellent. Thanks. I'm not sure if timeout would be the solution because we discovered that sometimes our directed request also failed to get an instance id. I think the request to get metadata needs to try again on later log messages if it hasn't already got a valid instance id. I assume the metadata does eventually become available but I haven't confirmed this yet. I think the initial error occurs because the timeout is too short. But, then it should retry on subsequent log messages before caching a valid instance id. I don't think it should cache error or noinstanceid. |
Yes, exactly. I thought i'd do both, if I can. On Wednesday, 2 March 2016, Rob Speller notifications@github.com wrote:
|
I've released v4.5-alpha targeting this issue. Let me know if it works for you! |
I just pushed v.4.6.0-alpha1 to nuget. |
Thanks. We have actually implemented our own method to get the instance id and inject it into the config file before start up using elastic beanstalk .ebextensions and a powershell script. I am no longer on the team so I'm unable to test the metadata fix myself. I wonder if it has fixed the issue for @pontili ? |
We are logging with our instance id but sometimes the instance id is set to 'Noinstanceid'.
For example, one environment has two instances, with exactly the same application. One instance is showing 'Noinstanceid' in the logs, while the other is working fine and showing the correct instance id.
A quick look through the code suggests that it is being cached. Perhaps this problem is due to not being able to retrieve the instance id when the instance is new/starting up and that the cache should expire if there Noinstanceid is cached and retry retrieving the instance id for when it becomes available (if it ever becomes available?).
(otherwise, cloudwatchappender is working great for us - thanks!)
The text was updated successfully, but these errors were encountered: