Django web project - alantang888/VMware-IO-Analyzer-Management-Tools GitHub Wiki

Requirement

  1. ActivePython-2.7 (optional)
  2. Python package
  3. Django (This project is develop on 1.9.1)
  4. pytz

Init DB and start service

  1. Copy ioTestMgt to server
  2. Change directory to ioTestMgt
  3. Init DB
  4. Run /opt/ActivePython-2.7/bin/python manage.py makemigrations server_profile
  5. Run /opt/ActivePython-2.7/bin/python manage.py migrate
  6. Create admin user for manage config
  7. Run /opt/ActivePython-2.7/bin/python manage.py createsuperuser
  8. Start service
  9. Run nohup /opt/ActivePython-2.7/bin/python manage.py runserver 0.0.0.0:8000 &
  10. After that this service will run listen on all IP's TCP 8000 port

Server object on /admin/

Server object is for store IOAnalyzer name, URL, HTTP header and active state
In Django admin page, you can set:

  • Name
    • For display, human readable. Using on check result page.
  • Url
    • For ioTestSchedulerSubmit.py, where to submit job.
    • For example: http://[IO Analyzer IO]:8180/IOAnalyzer/ioanalyzer/backend
  • Http headers
    • For ioTestSchedulerSubmit.py, what HTTP header is needed for submit job.
  • Active
    • Server state, if not active, it will not appear on /server_profile/ . Then no job will submit to that server.

Test profile object on /admin/


View result


Useful URL

  1. /admin/
  • Modify config
  1. /check_result/
  • Check result with chart
  1. /check_active_profile_run_status/
  • Check profile has ran on last 2 hours
  1. /server_profile/
  • Show all active server and active test profile (in JSON format). For ioTestSchedulerSubmit.py use
  1. /result_upload/
  • Result upload URL. For ioTestResultChecker.py use.
  1. /result_list/
  • List all test result. It may very large and spend time. Normally no use
⚠️ **GitHub.com Fallback** ⚠️