Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Overview:

Currently cPickle is used to dump configuration using save_configuration() & load_configuration() is used to load it, which does not work as intended. Pickle is slow, unsafe and is not human readable. Storing configurations in json format would be a better option.

Forum Discussionhttp://community.pbspro.org/t/update-file-format-and-file-name-for-data-saved-using-save-configuration-method-in-ptl/1516

Technical Details:

Interface Update

...

  • Interface: save_configuration()
    Synopsis: Update to save configuration in .json file
    Details: This method will encode configuration file contents in base64 format based on  & save it in a json file.

save_configuration() will continue to save the following from the PBS cluster:

Server configurations to be saved:

...

  • Interface: load_configuration()
    Synopsis: Apply configuration saved by save_configuration()
    Details: This method will load json file that was saved by save_configuration & apply the corresponding changes.

...