1 / 9

Foundation API

Foundation API. The Fast Version. Follow my examples. Example: building App for GMAP on Stampede Materials are in the Data Store: Community Data/ iplantcollaborative / example_data / gmap / iplant /home/shared/ iplantcollaborative / example_data / gmap. Key Steps.

borka
Télécharger la présentation

Foundation API

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Foundation API The Fast Version

  2. Follow my examples • Example: building App for GMAP on Stampede • Materials are in the Data Store: • Community Data/iplantcollaborative/example_data/gmap • /iplant/home/shared/iplantcollaborative/example_data/gmap

  3. Key Steps • Binaries available on the target server? • Is it the appropriate server? • How many threads? MPI? • Make a test wrapper. • Modify the wrapper for the API • Make a json to match your wrapper. • Test the API application with the Test Application • Build a DE App to match the API application

  4. Binaries • Binaries available on the target server? • Is it the appropriate server? Does it require more than 24 hrs for typical use? • Is there a module available? • How many threads? MPI?

  5. Test Wrapper • Bash script • Take data from the data store • Pull binaries from the data store unless there is a module available • Include all the options users may commonly need (target more for beginner than for expert) • Test wrapper should be able to run on the queue for the chosen server in an empty directory (think of the exec node that will run your app, your data cold, no preparation)

  6. Modified Wrapper (API-ready) • The API will take care of some of the routine functions • Remove queue configurations • Remove test entries • Remove icommands for loading in binaries • Put finished wrapper in a data store directory for the application (e.g. /iplant/rogerab/username/applications/gmap12)

  7. Make a json • Enter in key API-needed entries (first section) • Enter in your inputs, options, etc. • Test the json for proper formatting • Upload the json into the system • e.g. curl -sku "rogerab:XXXXXX" -X POST -F "fileToUpload=@gmapL.json" https://foundation.iplantc.org/apps-v1/apps | python -mjson.tool

  8. Test with the Test Application • https://foundation.iplantcollaborative.org/iplant-test/ • Log in, find your app, generate a job form (Apps Service) • Monitor progress under Job Service

  9. Build an App in the DE • Use “foundational_api_adapter.pl” for application • Input entries and options all need to match the json, the wrapper script • Foundation API-specific entries are also needed • App id (--appid) • Run time (--requestedTime) • Max memory (--maxMemory) • Number of processors (--processorCount) • For guidance, make copies of existing API apps and look at specific configurations

More Related