在冰淇淋调度程序日志中,“<host>不符合条件”是什么意思?

时间:2018-04-26 14:21:04

标签: untagged

使用icecream诊断慢构建时间。我在icecc-scheduler日志中列出了以下消息的几个实例:

    from django.shortcuts import render, redirect
    from .forms import PostForm
    from django.views.generic import TemplateView
    from .forms import CommentForm
    from django.shortcuts import get_object_or_404
    from .models import Post

    class createPost(TemplateView):
        template_name = 'forum/createPost.html'

        def get(self, request):
            form = PostForm()
            return render(request, self.template_name, {'form': form})

        def post(self, request):
            form = PostForm(request.POST)
            if(form.is_valid()):
                form.save()
                return redirect('/forum')

    def add_comment(request, pk):
        post = get_object_or_404(Post, pk=pk)
        if(request.method == 'POST'):
            form = CommentForm(request.POST)
            if(form.is_valid()):
                comment = form.save(commit=False)
                comment.post = post
                comment.save()
                return redirect('/forum/')
        else:
            form = CommentForm()
        template = 'forum/addComment.html'
        context = {'form': form}
        return render(request, template, context)

这是什么尝试与我沟通?

1 个答案:

答案 0 :(得分:1)

这可能来自几种情况,它们记录在source code here

bool CompileServer::is_eligible(const Job *job)
{
    bool jobs_okay = int(m_jobList.size()) < m_maxJobs;
    bool load_okay = m_load < 1000;
    bool version_okay = job->minimalHostVersion() <= protocol;
    return jobs_okay
           && (m_chrootPossible || job->submitter() == this)
           && load_okay
           && version_okay
           && m_acceptingInConnection
           && can_install(job).size()
           && this->check_remote(job);
}

我将检查以确保每个主机都是:

  1. iceccd以root身份运行
  2. 每个主机都安装了相同版本的icecc。使用/usr/bin/icecc --version
  3. 进行验证
  4. 剩余大量可用空间
  5. 未超过最大工作数量