Skip to content

Latest commit

 

History

History
69 lines (51 loc) · 3.37 KB

AdministratorGuide.md

File metadata and controls

69 lines (51 loc) · 3.37 KB

MLiy Open Source Administrator Guide

Installation

Software Installation

Post Installation

Configuration steps to take after the website is installed.

  • Create Admin
    • May not be needed if LDAP is set up to allow certain groups to come through.
    • If the LDAP server and connection is set up, it can allow certain groups to be auto-added as administrators.
    • Requires SSH access to the EC2 instance
  • Set Manager Group
    • This is different from the Admin, as it designates a "manager user" and not the site administrator.
    • This can also be set through a parameter in the MLiy Website Cloudformation template.
  • Admin Terminal Commands
    • Django provides many commands to do database and setup actions
    • We provide some custom commands to sync the database's Cloudformation templates with what's on S3.

Admin Console: Initial Setup and Ongoing Maintenance

Before you are able to launch and start using MLiy instances, you will need to create and register (see Prerequisites) some AWS resources. Logon to MLiy Admin console using the URL https://dns_entry_for_mliy_with_ssl_cert/admin. You will see a screen similar to the following:

Set up instance, EMR, and user configurations through the built-in Django Admin console. These are ordered in a way that reduces backtracking between dependencies.

Sample Created Resources

We provide some sample resources so that they don't have to be made from scratch.

EC2 Instance

Spark Cluster

AWS Systems Manager Document

MLiy instances and clusters include a iPython custom magic, MliyMagic, which can be used to deploy application jars or zips to Spark classpath in all already running EMR nodes. The library uses AWS Systems Manager Run Command to remotely and securely manage the configuration of your managed instances. The EC2 Instance profile (IAM Role) used to launch the MLiy instance and cluster must be able to invoke SSM Documents and read the specified library file in S3 bucket.

Django Administrator Documentation

Additional information about administrering the django site, including the user auth module can be found at

https://docs.djangoproject.com/en/2.1/ref/contrib/admin/

and on the MLiy site at the relative url

/admin/doc