Git Product home page Git Product logo

Comments (5)

chronolaw avatar chronolaw commented on September 25, 2024 1

lua-resty-events is a new library in kong gateway 3.x, this blog post may be helpful: https://konghq.com/blog/engineering/nginx-openresty-event-handling-strategy-for-cpu-efficiency

from kong.

jeremyjpj0916 avatar jeremyjpj0916 commented on September 25, 2024 1

Yep, confirmed it fixed all my woes! Appreciate the quick support!

from kong.

chronolaw avatar chronolaw commented on September 25, 2024

I notice there is a line:

listen 0.0.0.0:9443 ssl http2 deferred reuseport backlog=16384;

Since Nginx 1.25.1, the "http2" parameter of the "listen" directive is deprecated.

See: https://nginx.org/en/CHANGES

from kong.

chronolaw avatar chronolaw commented on September 25, 2024

The message "failed to instantiate 'kong.worker_events' module" is reported by lua-resty-events library,
Which needs a unix socket to run. We must define a server block like:

server {
    charset UTF-8;
    server_name kong_worker_events;
    listen unix:${{PREFIX}}/worker_events.sock;
    access_log off;
    location / {
        content_by_lua_block {
          require("resty.events.compat").run()
        }
    }
}

Please refer to kong/templates/nginx_kong.lua and nginx_kong_stream.lua then edit our own template.

from kong.

jeremyjpj0916 avatar jeremyjpj0916 commented on September 25, 2024

Ooooo @chronolaw ^ that is definitely the issue! My template lacks that it seems. As Kong grows the custom nginx template just keeps getting so big :/ . Wish there was a more elegant way to achieve running base kong + a kong runtime thats mtls geared with modsecurity like I do.

Testing out adding that new server block and I bet that closes and fixes this issue. Thanks bud!

from kong.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.