Giter Site home page Giter Site logo

jchristn / kvpbase Goto Github PK

View Code? Open in Web Editor NEW
51.0 11.0 6.0 57.78 MB

Scalable, simple RESTful object storage platform, written in C#

Home Page: http://www.kvpbase.com

License: MIT License

C# 99.82% Dockerfile 0.18%
kvpbase storage server rest restful object api http https http-server

kvpbase's Introduction

Joel Christner

Thank you for visiting my Github profile. I'm an open source developer and member of the .NET Foundation focused on distributed systems, data storage, information search and retrieval, data management, and messaging. Outside of coding, I'm a husband, father to two wonderful children, a Brazilian Jiu Jitsu black belt, and a musician.

If you've found value in the software I've published and wish to support me, please consider sponsoring me on Github or buying me a coffee.

kvpbase's People

Contributors

jchristn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kvpbase's Issues

AddNodeFailure error while setting up loadbalancer with storage-server

Hello,
I'm trying to setup two machines that runs your loadbalancer and an instance of storage-server.
My setup can be schemed in this way:

     10.1.3.71              10.1.3.72
 --------+----------------------+-------------
         |                      |             
     +---+---+              +---+---+   
     | srv01 |              | srv02 |      
     +-------+---------+    +-------+---------+     
     | server-storage  |    | server-storage  |
     | loadbalancer    |    | loadbalancer    |
     +-----------------+    +-----------------+
	 

I configured both the server-storage and the loadbalanced following your directions.
While I've been able to successfully setup a single storage-server instance (which I've been able to manage using your C# sdk) I couldn't do the same neither whith the loadbalancer nor with the "clustered" setup described above.

This is the configuration I used for the loadbalancer:

+---------- System.json ----------+

{
  "EnableConsole": 1,
  "RedirectStatusCode": 302,
  "RedirectStatusString": "Moved Temporarily",
  "Hosts": [
    {
      "Name": "test",
      "HttpHostNames": [
        "www.test.com",
        "test.com"
      ],
      "Nodes": [
        {
          "Hostname": "10.1.3.71",
          "Port": 8090,
          "Ssl": 0,
          "HeartbeatUrl": "http://10.1.3.71:8090/",
          "PollingIntervalMsec": 2500,
          "MaxFailures": 4,
          "Failed": false
        },
        {
          "Hostname": "10.1.3.72",
          "Port": 8090,
          "Ssl": 0,
          "HeartbeatUrl": "http://10.1.3.72:8090/",
          "PollingIntervalMsec": 2500,
          "MaxFailures": 4,
          "Failed": false
        }
      ],
      "LastIndex": 0,
      "LoadBalancingSchema": "roundrobin",
      "HandlingMode": "redirect",
      "AcceptInvalidCerts": 1
    }
  ],
  "Server": {
    "DnsHostname": "10.1.122.112",
    "Port": 7777,
    "Ssl": 0
  },
  "Auth": {
    "AdminApiKeyHeader": "x-api-key",
    "AdminApiKey": "admin"
  },
  "Syslog": {
    "SyslogServerIp": "127.0.0.1",
    "SyslogServerPort": 514,
    "MinimumSeverityLevel": 1,
    "LogRequests": 0,
    "LogResponses": 0,
    "ConsoleLogging": 1
  },
  "Rest": {
    "UseWebProxy": 0,
    "WebProxyUrl": "",
    "AcceptInvalidCerts": 1
  }
}

And this is the configuration I used for the storage-server:

+---------- System.json ----------+

{
  "ProductName": "kvpbase",
  "ProductVersion": "2.0.1",
  "DocumentationUrl": "http://www.kvpbase.com/docs/",
  "Environment": "linux",
  "LogoUrl": "http://kvpbase.com/Content/Images/cloud-only_25px.png",
  "HomepageUrl": "http://www.kvpbase.com",
  "SupportEmail": "[email protected]",
  "EnableConsole": 1,
  "Files": {
    "Topology": "/mnt/cdrom/Apps/kvs/Topology.json",
    "UserMaster": "/mnt/cdrom/Apps/kvs/UserMaster.json",
    "ApiKey": "/mnt/cdrom/Apps/kvs/ApiKey.json",
    "Permission": "/mnt/cdrom/Apps/kvs/ApiKeyPermission.json"
  },
  "Server": {
    "HeaderApiKey": "x-api-key",
    "HeaderEmail": "x-email",
    "HeaderPassword": "x-password",
    "HeaderToken": "x-token",
    "HeaderVersion": "x-version",
    "AdminApiKey": "kvpbaseadmin",
    "TokenExpirationSec": 86400,
    "FailedRequestsIntervalSec": 60
  },
  "Redirection": {
    "ReadRedirectionMode": "proxy",
    "ReadRedirectHttpStatus": 301,
    "ReadRedirectString": "Moved Permanently",
    "SearchRedirectionMode": "proxy",
    "SearchRedirectHttpStatus": 301,
    "SearchRedirectString": "Moved Permanently",
    "WriteRedirectionMode": "proxy",
    "WriteRedirectHttpStatus": 301,
    "WriteRedirectString": "Moved Permanently",
    "DeleteRedirectionMode": "proxy",
    "DeleteRedirectHttpStatus": 301,
    "DeleteRedirectString": "Moved Permanently"
  },
  "Topology": {
    "RefreshSec": 10
  },
  "Perfmon": {
    "Enable": 1,
    "RefreshSec": 10,
    "Syslog": 0
  },
  "Storage": {
    "Directory": "/mnt/cdrom/Apps/kvs/storage/",
    "MaxObjectSize": 512000000,
    "GatewayMode": 1,
    "DefaultCompress": 0,
    "DefaultEncrypt": 0
  },
  "Messages": {
    "Directory": "/mnt/cdrom/Apps/kvs/messages/",
    "RefreshSec": 10
  },
  "Expiration": {
    "Directory": "/mnt/cdrom/Apps/kvs/expiration/",
    "RefreshSec": 10,
    "DefaultExpirationSec": 0
  },
  "Replication": {
    "Directory": "/mnt/cdrom/Apps/kvs/replication/",
    "ReplicationMode": "sync",
    "RefreshSec": 10
  },
  "Bunker": {
    "Enable": 0,
    "Directory": "/mnt/cdrom/Apps/kvs/bunker/",
    "RefreshSec": 30
  },
  "PublicObj": {
    "Directory": "/mnt/cdrom/Apps/kvs/pubfiles/",
    "RefreshSec": 600,
    "DefaultExpirationSec": 7776000
  },
  "Tasks": {
    "Directory": "/mnt/cdrom/Apps/kvs/tasks/",
    "RefreshSec": 10
  },
  "Logger": {
    "RefreshSec": 10
  },
  "Syslog": {
    "ServerIp": "127.0.0.1",
    "ServerPort": 514,
    "Header": "kvpbase",
    "MinimumLevel": 1,
    "LogHttpRequests": 0,
    "LogHttpResponses": 0,
    "ConsoleLogging": 1
  },
  "Email": {
    "SmtpPort": 0,
    "SmtpSsl": 0,
    "EmailExceptions": 0
  },
  "Encryption": {
    "Mode": "local",
    "Port": 0,
    "Ssl": 0,
    "Passphrase": "0000000000000000",
    "Salt": "0000000000000000",
    "Iv": "0000000000000000"
  },
  "Rest": {
    "UseWebProxy": 0,
    "AcceptInvalidCerts": 0
  },
  "Mailgun": {},
  "Debug": {
    "DebugCompression": 0,
    "DebugEncryption": 0
  }
}

+---------- Topology.json ----------+

{
  "CurrNodeId": 1,
  "Nodes": [
    {
      "NodeId": 1,
      "Name": "localhost",
      "DnsHostname": "10.1.3.71",
      "Port": 8090,
      "Ssl": 0,
      "NumFailures": 0
    }
  ]
}

So if I launch both the loadbalacer and the storage-server on both machines I get this errors:
at loadbalancer (this report line appears for each node)
Warn thr-XY AddNodeFailure marking node nodeAddress:8090 failed (XYZfailures, max X)
and at storage-server (I get this error with other loadbalancing software too, although atm I tried only haproxy)
Info hostname thr-XY RequestReceived null raw URL list detected, redirecting to documentation page

Do I missed something in the configuration files?

I don't know actually where the real problem could be so I'll open this issue on the loadbalancer repository too (I'm sorry about this).

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.