Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Alex Hultman
    @alexhultman
    and I just installed the unmodified kaazing gateway community edition 5.00
    this is something I have considered, must be something with cross-site
    I don't know
    Robin Zimmermann
    @robinzimmermann
    Okay, give me a sec to find an example.
    Alex Hultman
    @alexhultman
    basically I'm just interested in connecting a client and doing some throughput / scalability benchmarks of the echo server to get some kind of reference point
    Robin Zimmermann
    @robinzimmermann
    Here is an example echo service with a cross site constraint that allows any connection:
      <service>
        <name>echo</name>
        <description>Simple echo service</description>
        <accept>ws://${gateway.hostname}:${gateway.port}/echo</accept>
    
        <type>echo</type>
    
        <!-- Restrict cross site constraints before running in production -->
        <cross-site-constraint>
          <allow-origin>*</allow-origin>
        </cross-site-constraint>
      </service>
    Add that <cross-site-constraint> to your service.
    And try to connect again from the websocket.org echo demo.
    Alex Hultman
    @alexhultman
    works
    thanks a lot
    Robin Zimmermann
    @robinzimmermann
    Cool!
    No worries.
    Can I close that github ticket?
    Alex Hultman
    @alexhultman
    I closed it
    Robin Zimmermann
    @robinzimmermann
    I just saw your updated the ticket. Fast work!
    Glad I could help.
    Alex Hultman
    @alexhultman
    yeah thanks
    Alex Hultman
    @alexhultman
    the server seems to be multithreaded by default
    I have 30 accepts because I have 30 localhost addresses
    when I stress the server it uses multiple cores, can I force it to use only one?
    I also need to echo 100mb, it doesn't allow that by default
    Alex Hultman
    @alexhultman
    from what I have found, the server is very slow
    is the Community edition slower than the main product?
    Robin Zimmermann
    @robinzimmermann

    Hi @alexhultman.

    the server seems to be multithreaded by default
    I have 30 accepts because I have 30 localhost addresses
    when I stress the server it uses multiple cores, can I force it to use only one?

    The server is NIO based. You can pin to the number of cores you want want with a -D parameter. For example, set the GATEWAY_OPTS environment variable prior to starting the gateway:

    export GATEWAY_OPTS='-Dorg.kaazing.gateway.server.transport.tcp.PROCESSOR_COUNT=1'

    from what I have found, the server is very slow
    is the Community edition slower than the main product?

    The Enterprise Gateway is layered on top of the Community Gateway and adds some features. Functionally there are more features in Enterprise Edition, but from a performance perspective they are same.

    If you can describe what you're doing and what you're trying to achieve, perhaps we can make some suggestions.

    I also need to echo 100mb, it doesn't allow that by default

    The gateway limits the inbound message size by default to prevent a denial of service attack that sends large payloads. You can change the value to something larger using ws.maximum.message.size:

    http://kaazing.com/doc/5.0/admin-reference/r_configure_gateway_service/index.html#wsmaximummessagesize

    As an alternative, you can also have the echo service echo back multiple times for each message it receives. In the following example, the echo service will send the message 10 times using the <repeat> property:

      <service>
        <name>echo</name>
        <description>Simple echo service</description>
        <accept>ws://${gateway.hostname}:${gateway.port}/echo</accept>
    
        <type>echo</type>
    
        <properties>
          <repeat>10</repeat>
        </properties>
    
        <!-- Restrict cross site constraints before running in production -->
        <cross-site-constraint>
          <allow-origin>*</allow-origin>
        </cross-site-constraint>
      </service>

    This way you can send a small message to the echo service, but have it send back a larger amount of data.

    Alex Hultman
    @alexhultman
    ah, thanks
    I'm just assembling a benchmark table of different WebSocket servers
    Diego Q.
    @diiegg
    hello, i hope some one can help me, i try tu install the git repo kaazing/gateway in openshift but its no workis, some one know the correct intallation process?
    Satish Badugu
    @sbadugu
    [daniel smith, Kaazing] Hello, diiegg, I am not aware of anything special needed for openshift. I see that openshift supports different kinds of containers. What kind of container are you using? Do you know the base OS of that container?
    Diego Q.
    @diiegg
    hello @sbadugu im usin
    Tomcat 7 (JBoss EWS 2.0) Cartridge
    JBoss Enterprise Web Server is the enterprise-class Java web container for large-scale lightweight web applications based on Tomcat 7. Build and deploy JSPs and Servlets in the cloud.
    Satish Badugu
    @sbadugu
    [daniel smith, Kaazing] The Kaazing Gateway is a standalone application process and is not a JBOSS web app. It can't be deployed into JBoss.
    Diego Q.
    @diiegg
    im try this one
    too
    Satish Badugu
    @sbadugu
    [daniel smith, Kaazing] basically if you have a container that is a Windows or Linux container that runs one of the OSs we support you should be able to install and run it.
    Diego Q.
    @diiegg
    let me see @sbadugu
    no i can only select the app
    its lie heroku or Travis Ci no Os enviroment they run over red hat
    so i can select the app bas e and clone the git repo
    but dsnt work
    @sbadugu i found this in git bit i can get the port forwarding
    this is the public portal
    Satish Badugu
    @sbadugu
    [daniel smith, Kaazing] From what I can see, This Openshift cartridge is maintained by Arun Gupta and is not an official Kaazing product. For help with the cartridge itself, you should contact him. That said, if you have access to the underlying Redhat OS you can download and install the Community Edition from http://kaazing.com/download. You can also try the Enterprise Edition and the Client SDKs.
    Diego Q.
    @diiegg
    @sbadugu tnks i have one question maybe its no the software that we looking for, we need a back end to conect the Lora gateways its posibble with the websoket ?
    to do somethink like this
    Satish Badugu
    @sbadugu
    [daniel smith, Kaazing] Looking...
    Satish Badugu
    @sbadugu
    [daniel smith, Kaazing] I am not sure about this. I know Websocket clients and gateways are definitely deployed in IoT architectures. May I suggest you send an email to support@kaazing.com with your name and email and we can refer you to one of our solutions architects to properly address this question.
    Diego Q.
    @diiegg
    @sbadugu ok tnks for the suuport and you time i will do it tnks have a goof day
    Satish Badugu
    @sbadugu
    [daniel smith, Kaazing] You too.