Changes:
- Changes for wss update
Added:
- Added time to data
- errorFeedback: (if on)Feedback if any error in processing data from users.
- live-request: When a new data is stored, sends it to all respective requestors of that floID.
- deleteRequest: Users will now be able to delete the data received by them from cloud. (Note: user must be the receiverID of the data; sign verification ll be done).
Improvements:
- Improved data processing from wss.
- Improved data-signature format (new format: "receiverID|time|application|type|message|comment").
- Time in data must be within the allowed delayDelta.
- Feedback vectorclock of stored data to the sender.
- Dedicated disk will now be applied to authorised apps instead of diskList (removed floGlobals.diskList)
. Authorising apps will automatically create a new disk for the app and imports all data of the app from defaultDisk.
. Unauthorising apps will automatically exports all data from app disk to defaultDisk and deletes the app disk. (Caution: Unauthorising an app will cause diskCleanUp to delete all data stored before deleteDelay).
- Improved autoDeleteStoredData to diskCleanUp. For defaultDisk: deletes all data before deleteDelay, For authorised apps deletes data before deleteDelay sent 'from non-subAdmins' and/or 'to non-admin'.
Bug fixes:
- Minor bug fixes
* Added gid and uid to websocket (mg_connection)
Note: gid = group ID, uid = unique ID.
* Replaced old ws msg processing functions with new ones
* System functions:
- sys_display: Displays in console/terminal
- sys_unicast: unicast message to respective ws
- sys_broadcast: broadcast message to all ws
* Supernode to Users:
- broadcast: Sends msg to all ws
- groupcast: Sends msg to ws of affilated group
- unicast: Sends msg to respective ws
*User to Supernode:
- forward: Forwards msg from user to supernode ws
- Added migration feature when nodes are added or removed.
- Updated stdop
- Optimisation done for floSupernode module.
- Converted reactor events to respective functions for optimisation.
- fixed minor bugs.
Adding Sharmirs Secret functions
Store and retrive the private key and server password securely
A dump credential for each credential will be stored to improve security
clearCredentials(): clear the stored credentials
Supernode automatically deletes messages that are not sent by subAdmins of an application and applications that are not associated.
The delete occurs every one hour, the messages are stored for a configurable time (deleteDelay) before deleted
Limiting the rotation while connecting to backup nodes. i.e, not enough supernodes available.
Handling the above exception in backup_node_offline event
Added the indications and processes when a noded comes back online:
Connect to the backup nodes
Inform the backup nodes that node is revived
Serving node transfers the serve list to revived node
Storing nodes informs their farest stored backup to connect to revived node
Added the indications and processes when a noded goes offline:
The previous nodes that the dead was serving ll connect to a next available node
The immediate prev node informs the immediate next node to start serving the dead
Added following features:
inidicate the next node when a sn is down
inidicate the next node when a sn is up
request backuped data when a sn comes back online