Logging – every possibility to know when nginx blocks a request because there are no more employees on the uwsgi server

I have a nginx setup with a Uwsgi server with n workers.

If I execute n + 1 requests in parallel, the last request is blocked until one of the n uwsgi employees has finished processing a request.

I wanted to know if there was a way in nginx (or uwsgi) to see how many times a request was blocked due to the lack of uwsgi employees.

Logging – Find anomalies in log files

I'm looking for a tool or algorithm that I can use to analyze log files.
It should help to identify changes in the normal log flow / structure.

If I know that the application worked perfectly up to time X, it should be checked which changes have been made in the (structure of) log files at this time.

Is there a tool that can help in such a scenario without the hassle of developing this form or adapting the algorithm for days?

Forms – Common input fields for registering and logging in with separate buttons

While working on the registration / login page for mine AppI came up with the idea of ​​combining the two into one. When you click Register, users are redirected to a new page where you can enter the rest of the details.

Enter the image description here

I want to keep onboarding users as easy as possible. For example, using the traditional approach, users first see a login page. If you want to register, click on a Sign in instead Button that opens a new page.

By using my approach, users are saved by an additional click and a page load. But what are the advantages and disadvantages here?

Logging: security against performance. How to choose

For almost any type of system, regardless of whether it's a small or a large system, it's a good idea to follow the tactic

Do right first, then do it quickly!

(and: do not optimize "just in case").

The logging (especially if it is carried out for the purpose of post-mortem analysis) must normally be complete and must not lose the final entries. Therefore, I would strongly recommend always starting with a solution that flushes every logged line straight to the hard drive. Otherwise, the protocol could become unusable.

Now if you've added "enough" logging to your application and if you actually have one real, measurable Loss of performance, then (and only then) think about optimizations. For most real-world applications, having a switch to turn logging on or off is probably enough. Or, if this is not sufficient, a parameter to change the logging level (such as "minimal", "standard", "verbose"). So you can make the decision between "security" and "performance" at runtime.

There are definitely some systems for which this is not sufficient (for example, if you only see hard-to-reproduce errors after a few hours under production load, but cannot afford full "debug" logging in a production environment, or if you do not have the option of simply restarting the system in "logging mode" after an error (e.g. software for an aircraft black box).

If you really develop such exceptional software, you may have to think of other optimizations – like a background process that receives logging events and can buffer them to disk, even if the main program crashes or what makes the most sense for that type of system You develop. As always with optimizations, however, this must be done with a thorough knowledge of the requirements, the use cases and the system. There is no simple "one size fits all" solution.

Iterm2 error when logging on

Every time I open a new window, Iterm2 says "Couldn't log in to …"

Picture: https://gyazo.com/9d2f2e4b8c257527bf896f210278261c

I restarted my Mac, which is on High Sierra, but Iterm keeps saying "Couldn't sign in to …"

Do you know how to solve this problem?

Embed a stream video in SharePoint without logging

I uploaded a video to streams and embedded it in SharePoint. However, logging in to streams is required to view the video (even though we're logged in to Sharepoint 365), as can be seen from the following screenshot:

Enter the image description here

If you ask users to sign in to a separate service to view the video, they will no longer be able to view the video. I would have thought Office 365 and streams were the same authentication. How can I do it like this?

The emedding code used is:


Thank you very much

8 – "There was an unexpected error on the website. Please try again later." when logging in

I recently updated my Drupal installation, there were many problems, but I think I have finally got the website up and running again.

The problem, however, is that when I try to log in, I get a simple white page with this text after entering my username / password.

It looks like this is the last line of the watchdog Table, but I have no idea what it means
#24 {main}";} | 3 | | https://domain.com/user/login | https://domain.com/user/login | | 1583752620 |