~bgh/nova/qmanager-rbp-trunk

« back to all changes in this revision

Viewing changes to bin/nova-scheduler

  • Committer: Chris Behrens
  • Date: 2010-08-05 21:11:59 UTC
  • mto: (237.9.1 instance_time)
  • mto: This revision was merged to the branch mainline in revision 277.
  • Revision ID: cbehrens@codestud.com-20100805211159-21d9jsrt699ya86j
almost there on random scheduler.  not pushing to correct compute node topic, yet, apparently...

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
# vim: tabstop=4 shiftwidth=4 softtabstop=4
 
3
 
 
4
# Copyright 2010 United States Government as represented by the
 
5
# Administrator of the National Aeronautics and Space Administration.
 
6
# All Rights Reserved.
 
7
#
 
8
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
 
9
#    not use this file except in compliance with the License. You may obtain
 
10
#    a copy of the License at
 
11
#
 
12
#         http://www.apache.org/licenses/LICENSE-2.0
 
13
#
 
14
#    Unless required by applicable law or agreed to in writing, software
 
15
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 
16
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 
17
#    License for the specific language governing permissions and limitations
 
18
#    under the License.
 
19
 
 
20
"""
 
21
  Twistd daemon for the nova scheduler nodes.
 
22
"""
 
23
 
 
24
from nova import twistd
 
25
from nova.scheduler import service
 
26
 
 
27
 
 
28
if __name__ == '__main__':
 
29
    twistd.serve(__file__)
 
30
 
 
31
if __name__ == '__builtin__':
 
32
    application = service.SchedulerService.create()