OpenShift Container Platform 4.10 可伸缩性和性能
exec 命令查看这些配置集的内容: 4.4. 验证是否应用了 TUNED 配置集 验证应用到集群节点的 TuneD 配置集。 输 输出示例 出示例 NAME:配置集(Profile)对象的名称。每个节点有一个 Profile 对象,其名称相互匹配。 TUNED:要应用的 TuneD 配置集的名称。 APPLIED:如果 TuneD 守护进程应用了所需的配置集,则为 True。 (True/False/Unknown)。 DEGRADED:如果在应用 TuneD 配置集时报告了任何错误则为 True(True/False/Unknown)。 AGE:创建 Profile 对象后经过的时间。 4.5. 自定义调整规格 Operator 的自定义资源 (CR) 包含两个主要部分。第一部分是 profile:,这是 TuneD 配置集及其名称的列 表。第二部分是 recommend:,用来定义配置集选择逻辑。 多个自定义调优规格可以共存,作为 recommend: - profile: "openshift-control-plane" priority: 30 match: - label: "node-role.kubernetes.io/master" - label: "node-role.kubernetes.io/infra" - profile: "openshift-node"0 码力 | 315 页 | 3.19 MB | 1 年前3Rust 程序设计语言 简体中文版 1.85.0
cargo run Compiling guessing_game v0.1.0 (file:///projects/guessing_game) Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.08s Running `target/debug/guessing_game` Hello, world +++++++ warning: `guessing_game` (bin "guessing_game") generated 1 warning Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.59s Rust 警告我们没有使用 read_line 的返回值 Result,说明有一个可能的错误没有处理。 cargo run Compiling guessing_game v0.1.0 (file:///projects/guessing_game) Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.44s Running `target/debug/guessing_game` Guess the0 码力 | 562 页 | 3.23 MB | 10 天前3Laravel 5.6 中文文档
Homestead 要想在文件系统的任意路径都能够运行 vagrant up 启动 Homestead 虚拟机,在 Mac/Linux 系统中,可以添加 Bash 函数到 ~/.bash_profile; 在 Windows 系统上,需要添加“批处理”文件到 PATH。这些脚本允许你在系统的任意位置运行 Vagrant 命令,并且把命令执行位置指向 Homestead 的安装路径。 Mac/Linux .org 16 补充知识点:/etc/profile 和 ~/.bash_profile 都可以用来设置系统 PATH,不同之处在于前者是给系统超级用户使用,后者是给普通登录用户使 用的,此外要让 ~/.bash_profile 修改后生效,有两种方法,一种是退出系统重新登录,一种是使用 source ~/.bash_profile 命令。 Windows 在系统的任意位置创建一个批处理文件 __construct(UserRepository $users) { $this->users = $users; } /** * Show the profile for the given user. * * @param int $id * @return Response */ public0 码力 | 377 页 | 14.56 MB | 1 年前3Laravel 5.1 中文文档
后使用数组键 as 指定路由别名: Route::get('user/profile', ['as' => 'profile', function () { // }]); 还可以为控制器动作指定路由名称: Route::get('user/profile', [ 'as' => 'profile', 'uses' => 'UserController@showProfile' $url = route('profile'); $redirect = redirect()->route('profile'); 如果路由定义了参数,可以将路由参数作为第二个参数传递给 route 函数。给定的路由参数 将会自动插入 URL 中: Route::get('user/{id}/profile', ['as' => 'profile', function ($id) ($id) { // }]); $url = route('profile', ['id' => 1]); 4、路由群组 路由群组允许我们在多个路由中共享路由属性,比如中间件和命名空间等,这样的话一大波 共享属性的路由就不必再各自定义这些属性。共享属性以数组的形式被作为第一个参数传递 到 Route::group 方法中。 想要了解更多路由群组,我们希望通过几个简单的应用实例来展示其特性。0 码力 | 307 页 | 3.46 MB | 1 年前3Candid: the interface description language of the Internet Computer smart contracts - 陈研
type Profile = record { name : text }; service : { getProfile : (nat) -> (Profile); } API v1 type Profile = record { name : text; age : nat8 }; service : { getProfile : (nat) -> (Profile); } types Procedure macro Token stream Token stream #[candid_method] fn getProfile(id: u32) -> Profile {...} Derive types with procedure macro • Deriving types from token stream directly • No def-use types Procedure macro Token stream Token stream #[candid_method] fn getProfile(id: u32) -> Profile {...} Lesson learned: don’t try to analyze Rust code, but to put the code back in the context and0 码力 | 35 页 | 1.35 MB | 1 年前3Laravel 5.2 中文文档
键 as 指定路由名称: Route::get('user/profile', ['as' => 'profile', function () { // }]); 此外,还可以为控制器动作指定路由名称: Route::get('user/profile', [ 'as' => 'profile', 'uses' => 'UserController@showProfile' 此外,除了在路由数组定义中指定路由名称外,还可以通过在路由定义之后使用 name 方法 链的方式来实现: Route::get('user/profile', 'UserController@showProfile')->name('profile'); 路由群组 & 命名路由 如果你在使用路由群组,可以通过在路由群组的属性数组中指定 as 关键字来为群组中的路 由设置一个共用的路由名前缀: $url = route('profile'); $redirect = redirect()->route('profile'); 如果命名路由定义了参数,可以将该参数作为第二个参数传递给 route 函数。给定的路由 参数将会自动插入 URL 中: Route::get('user/{id}/profile', ['as' => 'profile', function ($id)0 码力 | 377 页 | 4.56 MB | 1 年前3Laravel 5.3 中文文档
public function showProfile($id) { Log::info('Showing user profile for user: '.$id); return view('user.profile', ['user' => User::findOrFail($i d)]); } } 该日志记录器提供了 RFC 5424 __construct(UserRepository $users) { $this->users = $users; } /** * Show the profile for the given user. * * @param int $id * @return Response */ function show($id) { $user = $this->users->find($id); return view('user.profile', ['user' => $user]); } } 在本例中,UserController 需要从数据源获取用户,所以,我们注入了一个可以获取用户的服 务 UserRepository0 码力 | 691 页 | 9.37 MB | 1 年前3Laravel 6.0 中文文档
开始,这些值会被追加到查询字符 串中,如下所示: Route::get('/profile/{location?}', function ($locatio n = null) { // })->name('profile'); // Laravel 5.8: http://example.com/profile/active echo route('profile', ['status' => 'active']); 'active']); // Laravel 6.0: http://example.com/profile?status=act ive echo route('profile', ['status' => 'active']); 其它 我们还鼓励你查看 laravel/laravel 代码仓库的更新日志。尽管其 中的很多更新不是必须的,但是你可以将应用中的这些文件与代码仓 库保持同步。其中的一些更新已经在这篇升级指南中覆盖到了,但是 Homestead 要想在文件系统的任意路径都能够运行 vagrant up 启动 Homestead 虚拟机,在 Mac/Linux 系统中,可以添加 Bash 函数 到 ~/.bash_profile;在 Windows 系统上,需要添加「批处理」 文件到 PATH。这些脚本允许你在系统的任意位置运行 Vagrant 命 令,并且把命令执行位置指向 Homestead 的安装路径。 Mac/Linux0 码力 | 1442 页 | 14.66 MB | 1 年前3Blender v4.1 Manual
their positions accordingly. Influence circle. Falloff While editing, you can change the curve profile by either clicking the Falloff icon in the header or pressing Shift- O to get a pie menu. Constant oscillation (i.e. it just snaps to the B-value like an extreme exponential transition), and at 1.0 a profile similar to the one shown in the icon occurs. Period The period property controls the frequency Glass profile. First, create a mesh representing the profile of your object. If you are modeling a hollow object, it is a good idea to thicken the outline. Fig. Glass profile. shows the profile for a0 码力 | 6263 页 | 303.71 MB | 1 年前3尚硅谷大数据技术之Hadoop(入门)
jdk-8u212-linux- x64.tar.gz -C /opt/module/ 5)配置 JDK 环境变量 (1)新建/etc/profile.d/my_env.sh 文件 [atguigu@hadoop102 ~]$ sudo vim /etc/profile.d/my_env.sh 添加如下内容 #JAVA_HOME export JAVA_HOME=/opt/module/jdk1 PATH=$PATH:$JAVA_HOME/bin (2)保存后退出 :wq (3)source 一下/etc/profile 文件,让新的环境变量 PATH 生效 [atguigu@hadoop102 ~]$ source /etc/profile 6)测试 JDK 是否安装成功 [atguigu@hadoop102 ~]$ java -version 如果能看到以下结果,则代表 hadoop-3.1.3]$ pwd /opt/module/hadoop-3.1.3 (2)打开/etc/profile.d/my_env.sh 文件 [atguigu@hadoop102 hadoop-3.1.3]$ sudo vim /etc/profile.d/my_env.sh 尚硅谷大数据技术之 Hadoop(入门)0 码力 | 35 页 | 1.70 MB | 1 年前3
共 277 条
- 1
- 2
- 3
- 4
- 5
- 6
- 28