• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    FOG node-service

    Scheduled Pinned Locked Moved
    General
    2
    4
    2.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      axel12
      last edited by

      I noticed on the developer OpenProject there is a sub-project for node-service … I like writing javascript and somewhat familiar with node … so I was wondering what exactly is the grand plan for node-service?

      Is it something that runs together with node client and queries the FOG server via GET ? Or schedules its own snapins? or the FOG server calls on the client API to have the client execute snapins? I’m not quite sure how snapins fit into this.

      Here is a working example (Windows only, boys) … to install a standalone node and npm … .and to start its own node client. Once the app is loaded - its really up to your imagination what you would like it to do. I suppose together with powershell it can provide a whole heap of statistics - [url]http://nodejs.org/api/os.html[/url]

      Here is what I have:

      [url]https://github.com/capusta/node-service[/url]

      1 Reply Last reply Reply Quote 0
      • J
        Joe Schmitt Senior Developer
        last edited by

        Node service is my “baby”, along with the new client. In essence it runs on the server as a “router” for the client. To stick with the networking analogy, the FOG server is the modem, and the clients are the in LAN hosts.

        The new client is purely event-driven, both by local system events and server events. In order to achieve this we must maintain an constant concurrent connection between all hosts and the server.

        The default nature of PHP prevents it from being efficient at maintaining thousands of concurrent connections, not to mention it would flood port 80. The node service is the middle man in-between the FOG server and the client. As it runs on NodeJS, it can maintain millions of concurrent socketIO connections with little ram and cpu usage, due to the non-blocking asynchronous nature of NodeJS.

        That’s just a basic synopsis of the node-service. Theres’ a lot more going on underneath, and more reasons why we have it.

        (Little preview: we also need this style of connection for a future feature. Remote CMD for a client from the FOG web portal. But no promises. We are capable of doing this because of our security-system that Tom & I designed, which is capable of forming a secure connection across unsecured medians, and is immune to session hijacking.)

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        1 Reply Last reply Reply Quote 0
        • A
          axel12
          last edited by

          Soo … something like this ? (attached)

          [url=“/_imported_xf_attachments/1/1738_example.jpg?:”]example.jpg[/url]

          1 Reply Last reply Reply Quote 0
          • J
            Joe Schmitt Senior Developer
            last edited by

            Exactly like that

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post

            158

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project